Playwright · Class
Reporter
A Playwright Reporter is an object with optional callbacks for test-run events. Create a custom reporter by implementing needed methods and exporting the class as the default export.
Last updated
- Since
- v1.10
Syntax
class MyReporter implements Reporter { onBegin(config: FullConfig, suite: Suite): void; onTestBegin(test: TestCase, result: TestResult): void; onTestEnd(test: TestCase, result: TestResult): void; onEnd(result: FullResult): void; }
export default MyReporter;In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
FullConfigSuiteTestCaseTestResultFullResultTestStepTestErrorWorkerInfo