package file→ .shtukbase/packages/testing/judges/defect-fix.md
judges/defect-fix.md
15 lines, 846 B.
- # Judge: a defect is fixed with a test
- Norm QTS-R06. A program does not know whether the new test failed before the fix. The judge sees this.
- **Who judges.** The reviewer of a fix that repairs a defect: a person or a reviewing agent, not the author of the fix.
- **When.** On every change that closes a bug or a quality defect found in a run.
- **What the judge looks at.**
- 1. The change contains a test that catches this defect.
- 2. The test fails on the code before the fix (the author shows the failure or the reviewer runs it) and passes after.
- 3. The test is not softened: the expectation is not weakened, the check is not skipped.
- **Result.** The change links the bug and names the test; the bug holds the hash of the fix. No test means the change is not accepted, except where a test is impossible: then the reason is written in the bug.