test
The rs test command uses Rstest to run tests.
Usage
The command loads the test configuration registered with define.test().
Options
rs test supports the same test runtime options and filters as Rstest. See the Rstest CLI documentation and Filtering tests for details.
Examples:
Subcommands
run
rs test run runs matching tests once without watch mode. It is suitable for CI environments.
watch
rs test watch reruns related tests when a test file or its dependencies change.
list
rs test list lists matching tests without running them.
merge-reports
rs test merge-reports merges blob reports generated by multiple test shards.
init
rs test init creates starter files for a supported Rstest project type.
Configuration
Configure tests through define.test() in the Rstack configuration file. It accepts the standard Rstest configuration: