nixtest/docs/cli.md

14 lines
668 B
Markdown
Raw Normal View History

2025-06-02 13:34:59 +02:00
# CLI
```sh title="nix run .#nixtests:run -- --help"
Usage of nixtest:
--junit string Path to generate JUNIT report to, leave empty to disable
2025-06-08 20:55:36 +02:00
--no-color Disable coloring
2025-06-02 13:34:59 +02:00
--pure Unset all env vars before running script tests
2025-06-08 20:55:36 +02:00
-s, --skip string Regular expression to skip tests (e.g., 'test-.*|.*-b')
2025-06-02 13:34:59 +02:00
--snapshot-dir string Directory where snapshots are stored (default "./snapshots")
2025-06-08 20:55:36 +02:00
-f, --tests string Path to JSON file containing tests (required)
-u, --update-snapshots Update all snapshots
-w, --workers int Amount of tests to run in parallel (default 4)
2025-06-02 13:34:59 +02:00
```