crashtest docs

Installation

Crashtest ships as a plain Node package - zero runtime dependencies.

$ npm install --save-dev crashtest
$ npx crashtest --version

One-off probes

$ npx crashtest init
$ npx crashtest run

npx fetches on first use and pins nothing - for CI, prefer the committed dev dependency or the composite action below so versions don’t surprise you.

CI (GitHub Action)

One step gates a whole branch:

- uses: dhaupin/[email protected]
  with:
    config: crashtest.config.js   # default
    run-tests: 'false'            # also run your own npm test first, if you want

The action installs crashtest, runs the gate against your committed labs/crashledger.json, uploads hardening-run.md as an artifact, and exits with the gate exit rules.

Requirements

Verify what you installed

$ npm view crashtest dist.attestations
true

Every release is published with SLSA provenance from GitHub Actions - the tarball is traceable to an exact commit, signed into the Sigstore transparency log. First release: 0.1.0 provenance.