fuchsia.test

PROTOCOLS

RunListener

Defined in fuchsia.test/suite.fidl

Listener listens to results from |Suite.Run| request.

OnTestCaseStarted

Indicates that an individual test case has started execution and provides the primary log stream used by this test case.

Request

NameType
name string[512]
primary_log handle<socket>

OnTestCaseFinished

Indicates that an invididual test case has completed and outcome is available.

Request

NameType
name string[512]
outcome Outcome

Suite

Defined in fuchsia.test/suite.fidl

GetTests

Enumerate the test cases available in this test suite.

Request

NameType

Response

NameType
cases vector<Case>

Run

Run the specified test cases. Results are returned over the results channel. The Suite is expected to execute tests one at a time in the order specified. Closing |run_listener| marks end of this call.

Request

NameType
tests vector<Invocation>
options RunOptions
run_listener RunListener

ENUMS

Status

Type: uint32

Defined in fuchsia.test/suite.fidl

Defines the end state of a test case.

NameValueDescription
PASSED 1
FAILED 2

TABLES

Case

Defined in fuchsia.test/suite.fidl

Description of a single test case.

OrdinalNameTypeDescription
1 name string[512] Used to show human readable results.

Outcome

Defined in fuchsia.test/suite.fidl

Represents the results of invoking a single test case. Should be named 'Result', but this interacts awkwardly with Rust's generated code.

OrdinalNameTypeDescription
1 status Status

Invocation

Defined in fuchsia.test/suite.fidl

Specification of a test to run.

OrdinalNameTypeDescription
1 case Case Test case to execute.

RunOptions

Defined in fuchsia.test/suite.fidl

OrdinalNameTypeDescription