Skip to content

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 pattern

Options

FlagDescription
--watchRe-run on file save
--coverageEmit a coverage report to coverage/
--filter <pattern>Only run tests matching the pattern
--reporter <type>Output format: dot, spec, tap (default: spec)
--bailStop after first failure

Exit Codes

CodeMeaning
0All tests passed
1One or more tests failed
2Configuration error

CI Integration

Add to your GitHub Actions workflow:

yaml
- name: Run tests
  run: shiva test --reporter tap

Released under the MIT License.