testmanagerd

package
v1.0.122 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 19 Imported by: 0

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

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

type TestCase

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

type TestCaseStatus

type TestCaseStatus string

type TestError

type TestError struct {
	Message string
	File    string
	Line    uint64
}

type TestListener

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

TestListener collects test results from the test execution

func NewTestListener

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

func (*TestListener) Done

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

func (*TestListener) LogDebugMessage

func (t *TestListener) LogDebugMessage(msg string)

func (*TestListener) LogMessage

func (t *TestListener) LogMessage(msg string)

func (*TestListener) TestRunnerKilled

func (t *TestListener) TestRunnerKilled()

type TestSuite

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

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