testmanagerd

package
v1.0.138 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 20 Imported by: 3

Documentation

Index

Constants

View Source
const (
	StatusFailed          = TestCaseStatus("failed")           // Defined by Apple
	StatusPassed          = TestCaseStatus("passed")           // Defined by Apple
	StatusExpectedFailure = TestCaseStatus("expected failure") // Defined by Apple
	StatusStalled         = TestCaseStatus("stalled")          // Defined by us

)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestAttachment added in v1.0.122

type TestAttachment struct {
	Name                  string
	Path                  string
	Type                  string
	Timestamp             float64
	Activity              string
	UniformTypeIdentifier string
}

type TestCase added in v1.0.122

type TestCase struct {
	ClassName   string
	MethodName  string
	Status      TestCaseStatus
	Err         TestError
	Duration    time.Duration
	Attachments []TestAttachment
}

type TestCaseStatus added in v1.0.122

type TestCaseStatus string

type TestError added in v1.0.122

type TestError struct {
	Message string
	File    string
	Line    uint64
}

type TestListener added in v1.0.122

type TestListener struct {
	TestSuites []TestSuite
	// contains filtered or unexported fields
}

TestListener collects test results from the test execution

func NewTestListener added in v1.0.122

func NewTestListener(logWriter io.Writer, debugLogWriter io.Writer, attachmentsDirectory string) *TestListener

func (*TestListener) Done added in v1.0.122

func (t *TestListener) Done() <-chan struct{}

func (*TestListener) FinishWithError added in v1.0.133

func (t *TestListener) FinishWithError(err error)

func (*TestListener) LogDebugMessage added in v1.0.122

func (t *TestListener) LogDebugMessage(msg string)

func (*TestListener) LogMessage added in v1.0.122

func (t *TestListener) LogMessage(msg string)

func (*TestListener) TestRunnerKilled added in v1.0.122

func (t *TestListener) TestRunnerKilled()

type TestSuite added in v1.0.122

type TestSuite struct {
	Name          string
	StartDate     time.Time
	EndDate       time.Time
	TestDuration  time.Duration
	TotalDuration time.Duration
	TestCases     []TestCase
}

func RunXCUITest

func RunXCUITest(bundleID string, testRunnerBundleID string, xctestConfigName string, device ios.DeviceEntry, env []string, testsToRun []string, testsToSkip []string, testListener *TestListener) ([]TestSuite, error)

func RunXCUIWithBundleIdsCtx added in v1.0.71

func RunXCUIWithBundleIdsCtx(
	ctx context.Context,
	bundleID string,
	testRunnerBundleID string,
	xctestConfigFileName string,
	device ios.DeviceEntry,
	args []string,
	env []string,
	testsToRun []string,
	testsToSkip []string,
	testListener *TestListener,
) ([]TestSuite, error)

type XCTestManager_DaemonConnectionInterface

type XCTestManager_DaemonConnectionInterface struct {
	IDEDaemonProxy *dtx.Channel
}

type XCTestManager_IDEInterface

type XCTestManager_IDEInterface struct {
	IDEDaemonProxy *dtx.Channel
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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