TestStatus.Status


enum TestStatus.Status


Valid test statuses for individual test cases and test runs. Check the documentation on individual statuses for more information.

Summary

Enum Values

ABORTED

This operation was started and was terminated before completion.

CANCELLED

This operation was supposed to run but was abandoned before it was able to execute.

FAILED

This operation finished execution, but did not succeed.

IGNORED

This operation did not run or trigger any other operations.

PASSED

This operation executed normally and succeeded.

SKIPPED

This operation did not run, but other operations may have been run to prepare for this action.

Public functions

java-static TestStatus.Status!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<TestStatus.Status!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

ABORTED

val TestStatus.Status.ABORTEDTestStatus.Status

This operation was started and was terminated before completion. This status should be set by receiver if a test start was emitted by a client but the client does not emit an event marking the tests completion. It is safer to assume the client terminated unexpectedly.

CANCELLED

val TestStatus.Status.CANCELLEDTestStatus.Status

This operation was supposed to run but was abandoned before it was able to execute. This should be the default test status for receivers. If no updates were sent for tests cases that were expected to run, it is safer to assume that the client terminated unexpectedly.

FAILED

val TestStatus.Status.FAILEDTestStatus.Status

This operation finished execution, but did not succeed.

IGNORED

val TestStatus.Status.IGNOREDTestStatus.Status

This operation did not run or trigger any other operations. If this or SKIPPED is not emitted for tests that were not run, the receiver should mark them as CANCELLED since the underlying test runner may have unexpectedly crashed in the middle of running these tests.

See also
SKIPPED

for ignored tests that trigger other operations.

PASSED

val TestStatus.Status.PASSEDTestStatus.Status

This operation executed normally and succeeded.

SKIPPED

val TestStatus.Status.SKIPPEDTestStatus.Status

This operation did not run, but other operations may have been run to prepare for this action. An example of this would be if a test threw an - indicating that it should not be run. This does prevent other pre &post test operations from running.

See also
IGNORED

for tests that do not trigger setup/teardown operations.

Public functions

valueOf

java-static fun valueOf(name: String!): TestStatus.Status!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
TestStatus.Status!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<TestStatus.Status!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<TestStatus.Status!>!

an array containing the constants of this enum type, in the order they're declared