shouldBeDone property

bool shouldBeDone

Whether this test has already completed successfully.

If a callback originating from a test case is invoked after the test has already passed it may be an indication of a test that fails to wait for all work to be finished, or of an asynchronous callback that is called more times or later than expected.

Implementation

bool get shouldBeDone => _invoker.liveTest.state.shouldBeDone;