Skip to content

netinject regress ​

Check the current state of an API against a previously captured baseline.

Usage ​

bash
netinject regress check [OPTIONS]

Options ​

FlagDescription
--against <BASELINE>Baseline to check against (default: latest)
--paths <PATTERNS>Only check specific endpoint paths (comma-separated)
--config <PATH>Config file path
--auth <NAME>Auth profile
--format <FORMAT>Output format

Examples ​

bash
# Check against latest baseline
netinject regress check --auth staging

# Check against a specific baseline
netinject regress check --against baseline-2024-01-15.json

# Only check specific paths
netinject regress check --paths "/api/users/*,/api/orders/*"

What It Detects ​

The regression engine compares current responses against the baseline and classifies changes:

Change TypeDefault Severity
Status code changedBreaking
Schema drift (field added/removed/type changed)Breaking
Body hash changedWarning
Timing anomaly (over 2x baseline)Warning
Header changesInfo

Severity thresholds are configurable in netinject.toml.

Status ​

Regression checking is in development. The types, severity classification, and storage schema are defined.