Assert Diff Test Parity Guard

0•

Detects removed or rewritten test assertions in git diffs to prevent regressions and enforce parity decisions during code review.

Assert Diff acts as a mechanical guard during pull request reviews and risk audits by scanning git diffs for deleted or rewritten test assertions, test blocks, and describe suites. By treating every existing test assertion as a preserved behavior baseline, it ensures that developers do not inadvertently weaken test suites or silently drop behavioral guarantees. Any detected modification requires an explicit parity disposition—either confirming that behavior is restored or recording a signed-off drop—preventing silent regressions before merging.

Key Features

01Catches rewritten assertions that secretly weaken or invert test guarantees
02Integrates with CI/CD gates, PR reviews, and slice verification workflows
03Pinpoints exact base file line numbers to easily inspect contextual behavior
04Enforces structured decision tracking for kept versus intentionally dropped tests
050 GitHub stars
06Scans git diffs for deleted or modified assertions and test declarations

Use Cases

01Tracking test parity and regression risk during large-scale code refactorings
02Gating releases to ensure dropped test assertions have recorded stakeholder sign-off
03Auditing PR diffs during code reviews to verify no tests were silently removed