Skip to main content
hitspec uses specific exit codes to indicate the result of a test run. These are useful for scripting and CI/CD integration.

Exit Codes

Usage in Scripts

CI/CD Usage

Most CI systems treat any non-zero exit code as failure. hitspec’s exit codes let you distinguish between test failures and infrastructure issues:
Use --bail to stop on the first failure and exit immediately with code 1. Without --bail, hitspec runs all tests before exiting.
Last modified on February 10, 2026