shiva test
Run the module test suite using shiva-test.
Usage
bash
shiva test [module] [options]Examples
bash
shiva test # run all tests
shiva test my-fishing # run tests for one module
shiva test --watch # re-run on file changes
shiva test --coverage # generate coverage report
shiva test --filter "getBalance" # run tests matching a patternOptions
| Flag | Description |
|---|---|
--watch | Re-run on file save |
--coverage | Emit a coverage report to coverage/ |
--filter <pattern> | Only run tests matching the pattern |
--reporter <type> | Output format: dot, spec, tap (default: spec) |
--bail | Stop after first failure |
Exit Codes
| Code | Meaning |
|---|---|
0 | All tests passed |
1 | One or more tests failed |
2 | Configuration error |
CI Integration
Add to your GitHub Actions workflow:
yaml
- name: Run tests
run: shiva test --reporter tap