reporters
- Type:
-
Reporter options reference: Reporter option types are defined in
packages/core/src/types/reporter.ts -
Default:
- CLI:
--reporter=<name> --reporter=<name1>
Configure which reporters to use for test result output.
If you haven't explicitly configured any reporters (no reporters in config and no --reporter flags), Rstest defaults to ['md'] and outputs AI agent-friendly markdown to stdout.
Usage
Basic example
You can specify reporters in the rstest.config.ts file or via the CLI.
Multiple reporters
You can use multiple reporters to output test results in different formats simultaneously. This is useful when you want both console output and a file report for CI/CD pipelines.
Configuring reporters with options
Many reporters support configuration options. Pass them as a tuple [reporterName, options]:
Using custom reporters
You can create and use custom reporters by providing a reporter class or object that implements the reporter interface:
Related documentation
- Reporters guide - Usage examples and built-in reporter details
- Reporter API reference - Custom reporter implementation