Google is committed to advancing racial equity for Black communities. See how.

fuchsia.test

PROTOCOLS

CaseIterator

Defined in fuchsia.test/suite.fidl

Iterator for listing available test cases.

GetNext

Returns the next batch of test cases.

Request

NameType

Response

NameType
cases vector<Case>

CaseListener

Defined in fuchsia.test/suite.fidl

Listens to updates from an individual test case run.

Finished

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

Request

NameType
result Result

RunListener

Defined in fuchsia.test/suite.fidl

Listens to updates from test runs.

OnFinished

Indicates that the last test case that started has finished, and no more test cases will start.

Request

NameType

OnTestCaseStarted

Indicates that an individual test invocation has started execution.

Request

NameType
invocation Invocation
primary_log handle<socket>
listener request<CaseListener>

Suite

Defined in fuchsia.test/suite.fidl

GetTests

Enumerate the test cases available in this test suite.

Request

NameType
iterator request<CaseIterator>

Run

Run the specified test cases. Results are returned over the results channel.

tests may contain duplicate elements, in which case the same test is run multiple times as indicated. Closing test_listener marks the end of this call.

Request

NameType
tests vector<Invocation>
options RunOptions
listener RunListener

STRUCTS

ENUMS

Status

Type: uint32

Defined in fuchsia.test/suite.fidl

Represents success, failure, or other possible conditions following a test invocation.

NameValueDescription
PASSED 1

The test passed.

FAILED 2

The test failed.

SKIPPED 3

The test was skipped. A skipped status typically indicates that no attempt was made to run the test.

Examples: The test was disabled by the developer. A precondition for running the test was not satisfied.

TABLES

Case

Defined in fuchsia.test/suite.fidl

Describes a single test case.

OrdinalNameTypeDescription
1 name Name

Uniquely identifies a test case within a test suite. This member is required.

Invocation

Defined in fuchsia.test/suite.fidl

Specification of a test to run.

OrdinalNameTypeDescription
1 name Name

Uniquely identifies a test case within a test suite. This member is required.

2 tag Tag

Optional tag, arbitrarily specified by clients of Suite. This field is not used by Suite protocol.

Result

Defined in fuchsia.test/suite.fidl

Result of invoking a single test case.

OrdinalNameTypeDescription
1 status Status

This member is required.

RunOptions

Defined in fuchsia.test/suite.fidl

Optional additional instructions for running test cases.

OrdinalNameTypeDescription

TYPE ALIASES

NameValueDescription
Name string

Human-readable name for a test case.

Tag string

Optional unique tag to identitfy Invocation.