hitspec diff compares two JSON test result files and highlights differences in pass/fail status and response times. This is useful for detecting regressions between builds, branches, or deployments.
Workflow
- Run tests and save results as JSON
- Make changes (deploy, merge PR, etc.)
- Run tests again and save new results
- Compare with
hitspec diff
Output Formats
Console (default)
JSON
HTML
Threshold Checks
Fail the diff if any test regresses beyond a threshold:1 if any test’s response time increased by more than 10%. Useful as a CI/CD gate.
CI/CD Integration
What Gets Compared
A test is classified as:
- Improved — went from fail to pass, or duration decreased by >10%
- Regressed — went from pass to fail, or duration increased by >10%
- Unchanged — same status and duration within 10%