xcresult3

package
v0.0.0-...-5ae9364 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSummaryNotFound = errors.New("no summaryRef.ID.Value found for test case")

ErrSummaryNotFound ...

Functions

func Parse

Parse parses the given xcresult file's ActionsInvocationRecord and the list of ActionTestPlanRunSummaries.

Types

type ActionTestActivitySummary

type ActionTestActivitySummary struct {
	Attachments Attachments `json:"attachments"`
}

ActionTestActivitySummary ...

type ActionTestFailureSummary

type ActionTestFailureSummary struct {
	Message struct {
		Value string `json:"_value"`
	} `json:"message"`

	FileName struct {
		Value string `json:"_value"`
	} `json:"fileName"`

	LineNumber struct {
		Value string `json:"_value"`
	} `json:"lineNumber"`
}

ActionTestFailureSummary ...

type ActionTestPlanRunSummaries

type ActionTestPlanRunSummaries struct {
	Summaries Summaries `json:"summaries"`
}

ActionTestPlanRunSummaries ...

type ActionTestSummary

type ActionTestSummary struct {
	ActivitySummaries ActivitySummaries `json:"activitySummaries"`
	FailureSummaries  FailureSummaries  `json:"failureSummaries"`
	Configuration     Configuration     `json:"configuration"`
}

ActionTestSummary ...

type ActionTestSummaryGroup

type ActionTestSummaryGroup struct {
	Name       Name       `json:"name"`
	Identifier Identifier `json:"identifier"`
	Duration   Duration   `json:"duration"`
	TestStatus TestStatus `json:"testStatus"` // only the inner-most tests will have a status, the ones which don't have "subtests"
	SummaryRef SummaryRef `json:"summaryRef"` // only the inner-most tests will have a summaryRef, the ones which don't have "subtests"
	Subtests   Subtests   `json:"subtests"`
}

ActionTestSummaryGroup ...

type ActionTestableSummary

type ActionTestableSummary struct {
	Name  Name  `json:"name"`
	Tests Tests `json:"tests"`
}

ActionTestableSummary ...

type ActionsInvocationRecord

type ActionsInvocationRecord struct {
	Actions struct {
		Values []struct {
			ActionResult struct {
				TestsRef struct {
					ID struct {
						Value string `json:"_value"`
					} `json:"id"`
				} `json:"testsRef"`
			} `json:"actionResult"`
		} `json:"_values"`
	} `json:"actions"`

	Issues Issues `json:"issues"`
}

ActionsInvocationRecord ...

type ActivitySummaries

type ActivitySummaries struct {
	Values []ActionTestActivitySummary `json:"_values"`
}

ActivitySummaries ...

type Attachment

type Attachment struct {
	Filename struct {
		Value string `json:"_value"`
	} `json:"filename"`

	PayloadRef struct {
		ID struct {
			Value string `json:"_value"`
		}
	} `json:"payloadRef"`
}

Attachment ...

type Attachments

type Attachments struct {
	Values []Attachment `json:"_values"`
}

Attachments ...

type Configuration

type Configuration struct {
	Hash string
}

Configuration ...

func (*Configuration) UnmarshalJSON

func (c *Configuration) UnmarshalJSON(data []byte) error

UnmarshalJSON ...

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter ...

func (*Converter) Detect

func (c *Converter) Detect(files []string) bool

Detect ...

func (*Converter) XML

func (c *Converter) XML() (junit.XML, error)

XML ...

type DocumentLocationInCreatingWorkspace

type DocumentLocationInCreatingWorkspace struct {
	URL URL `json:"url"`
}

DocumentLocationInCreatingWorkspace ...

type Duration

type Duration struct {
	Value string `json:"_value"`
}

Duration ...

type FailureSummaries

type FailureSummaries struct {
	Values []ActionTestFailureSummary `json:"_values"`
}

FailureSummaries ...

type ID

type ID struct {
	Value string `json:"_value"`
}

ID ...

type Identifier

type Identifier struct {
	Value string `json:"_value"`
}

Identifier ...

type Issues

type Issues struct {
	TestFailureSummaries TestFailureSummaries `json:"testFailureSummaries"`
}

Issues ...

type Message

type Message struct {
	Value string `json:"_value"`
}

Message ...

type Name

type Name struct {
	Value string `json:"_value"`
}

Name ...

type ProducingTarget

type ProducingTarget struct {
	Value string `json:"_value"`
}

ProducingTarget ...

type Subtests

type Subtests struct {
	Values []ActionTestSummaryGroup `json:"_values"`
}

Subtests ...

type Summaries

type Summaries struct {
	Values []Summary `json:"_values"`
}

Summaries ...

type Summary

type Summary struct {
	TestableSummaries TestableSummaries `json:"testableSummaries"`
}

Summary ...

type SummaryRef

type SummaryRef struct {
	ID ID `json:"id"`
}

SummaryRef ...

type TestCaseName

type TestCaseName struct {
	Value string `json:"_value"`
}

TestCaseName ...

type TestFailureSummaries

type TestFailureSummaries struct {
	Values []TestFailureSummary `json:"_values"`
}

TestFailureSummaries ...

type TestFailureSummary

type TestFailureSummary struct {
	DocumentLocationInCreatingWorkspace DocumentLocationInCreatingWorkspace `json:"documentLocationInCreatingWorkspace"`
	Message                             Message                             `json:"message"`
	ProducingTarget                     ProducingTarget                     `json:"producingTarget"`
	TestCaseName                        TestCaseName                        `json:"testCaseName"`
}

TestFailureSummary ...

type TestStatus

type TestStatus struct {
	Value string `json:"_value"`
}

TestStatus ...

type TestableSummaries

type TestableSummaries struct {
	Values []ActionTestableSummary `json:"_values"`
}

TestableSummaries ...

type Tests

type Tests struct {
	Values []ActionTestSummaryGroup `json:"_values"`
}

Tests ...

type URL

type URL struct {
	Value string `json:"_value"`
}

URL ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL