state property
State
get
state
The running and success or failure status for the test case.
Implementation
State get state {
final status = _liveTest.state.status;
if (status == Status.pending) return State.pending;
if (status == Status.running) return State.running;
final result = _liveTest.state.result;
if (result == Result.skipped) return State.skipped;
if (result == Result.success) return State.passed;
// result == Result.failure || result == Result.error
return State.failed;
}