Verification · Testing · Unit and integration tests
Regression test per bug
Every fixed bug gets a test that failed before the fix.
How to build it
- Write a test that reproduces the bug and run it before the fix.
- Confirm the test fails on the old commit and passes after the fix.
- Name the test after the bug or link it to the bug report.
Signals in a repository
- Test names or comments that cite an issue number for a fixed bug.
- Pull requests with a fix that also add a test case.
- A regression test directory or marker, such as tests/regression.
In practice
No scanned repository runs a tool for this check. The steps above are the only guidance.