Reporter API
The Reporter API allows you to create custom test result processors and output formatters. This interface is experimental and may change in future versions.
Note: For usage examples and configuration guidance, see the Reporters guide.
Using custom reporter
Create a custom reporter by implementing the Reporter interface:
Use the custom reporter in your configuration:
Interface overview
The Reporter interface provides lifecycle hooks for test execution. Each hook is called at specific points during the test run.
Important: For the most up-to-date interface definition and complete type signatures, please refer to the source code.
Hook categories
- File-level hooks:
onTestFileStart,onTestFileReady,onTestFileResult - Suite-level hooks:
onTestSuiteStart,onTestSuiteResult - Case-level hooks:
onTestCaseStart,onTestCaseResult - Run-level hooks:
onTestRunEnd,onUserConsoleLog,onExit