ShtukbaseStandard
package file→ .shtukbase/packages/testing/judges/defect-fix.md

judges/defect-fix.md

15 lines, 846 B.

  1. # Judge: a defect is fixed with a test
  2. Norm QTS-R06. A program does not know whether the new test failed before the fix. The judge sees this.
  3. **Who judges.** The reviewer of a fix that repairs a defect: a person or a reviewing agent, not the author of the fix.
  4. **When.** On every change that closes a bug or a quality defect found in a run.
  5. **What the judge looks at.**
  6. 1. The change contains a test that catches this defect.
  7. 2. The test fails on the code before the fix (the author shows the failure or the reviewer runs it) and passes after.
  8. 3. The test is not softened: the expectation is not weakened, the check is not skipped.
  9. **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.