Hold each test to earning its keep, and take a test's expected values from its item
This commit is contained in:
@@ -123,8 +123,7 @@ Every PR gets at least this sweep.
|
||||
- Does a mutant of a changed line survive (First Steps, step 5)?
|
||||
- Was a test deleted while the behaviour it pinned remains? Flag it; restore the test.
|
||||
- Were tests and implementation changed together in a way that could mask a regression — e.g. an assertion weakened to make a test pass? Flag it; these should be separate changes.
|
||||
- Would each test fail if the behavior regressed? Watch for assertion-free tests, tautological asserts, and mocks so broad the test exercises the mock instead of the code.
|
||||
- Tests are code too: flag overlapping tests that pin the same behavior twice, and tests of framework behavior or trivial pass-throughs — maintenance cost without protection.
|
||||
- Does each test earn its keep, as the technical principles' test bullet says? Look at where its expected values come from, what it asserts, what wording it pins, whether another test already pins the behaviour, and whether it sleeps or reads the clock.
|
||||
- Are there untestable side effects that should be refactored?
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user