Documentation ¶
Index ¶
- Variables
- func Parse(pth string) (*ActionsInvocationRecord, []ActionTestPlanRunSummaries, error)
- type ActionTestActivitySummary
- type ActionTestFailureSummary
- type ActionTestPlanRunSummaries
- type ActionTestSummary
- type ActionTestSummaryGroup
- type ActionTestableSummary
- type ActionsInvocationRecord
- type ActivitySummaries
- type Attachment
- type Attachments
- type Configuration
- type Converter
- type DocumentLocationInCreatingWorkspace
- type Duration
- type FailureSummaries
- type ID
- type Identifier
- type Issues
- type Message
- type Name
- type ProducingTarget
- type Subtests
- type Summaries
- type Summary
- type SummaryRef
- type TestCaseName
- type TestFailureSummaries
- type TestFailureSummary
- type TestStatus
- type TestableSummaries
- type Tests
- type URL
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSummaryNotFound = errors.New("no summaryRef.ID.Value found for test case")
ErrSummaryNotFound ...
Functions ¶
func Parse ¶
func Parse(pth string) (*ActionsInvocationRecord, []ActionTestPlanRunSummaries, error)
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 ¶
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 Configuration ¶
type Configuration struct {
Hash string
}
Configuration ...
func (*Configuration) UnmarshalJSON ¶
func (c *Configuration) UnmarshalJSON(data []byte) error
UnmarshalJSON ...
type DocumentLocationInCreatingWorkspace ¶
type DocumentLocationInCreatingWorkspace struct {
URL URL `json:"url"`
}
DocumentLocationInCreatingWorkspace ...
type FailureSummaries ¶
type FailureSummaries struct {
Values []ActionTestFailureSummary `json:"_values"`
}
FailureSummaries ...
type Issues ¶
type Issues struct {
TestFailureSummaries TestFailureSummaries `json:"testFailureSummaries"`
}
Issues ...
type ProducingTarget ¶
type ProducingTarget struct {
Value string `json:"_value"`
}
ProducingTarget ...
type Subtests ¶
type Subtests struct {
Values []ActionTestSummaryGroup `json:"_values"`
}
Subtests ...
type Summary ¶
type Summary struct {
TestableSummaries TestableSummaries `json:"testableSummaries"`
}
Summary ...
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 TestableSummaries ¶
type TestableSummaries struct {
Values []ActionTestableSummary `json:"_values"`
}
TestableSummaries ...
Click to show internal directories.
Click to hide internal directories.