faust.livecheck.runners
¶
LiveCheck - Test runner.
- class faust.livecheck.runners.TestRunner(case: _Case, test: TestExecution, started: float)[source]¶
Execute and keep track of test instance.
- report: Optional[TestReport] = None¶
- error: Optional[BaseException] = None¶
- case: _Case¶
- test: TestExecution¶
- async on_skipped(exc: LiveCheckTestSkipped) None [source]¶
Call when a test execution was skipped.
- Return type:
None
- async on_signal_wait(signal: BaseSignal, timeout: float) None [source]¶
Call when the test is waiting for a signal.
- Return type:
None
- async on_signal_received(signal: BaseSignal, time_start: float, time_end: float) None [source]¶
Call when a signal related to this test is received.
- Return type:
None
- async on_failed(exc: BaseException) None [source]¶
Call when an invariant in the test has failed.
- Return type:
None
- async on_error(exc: BaseException) None [source]¶
Call when test execution raises error.
- Return type:
None
- async on_timeout(exc: BaseException) None [source]¶
Call when test execution times out.
- Return type:
None