Forbid a test that decides at run time whether to check anything
CI / tests (pull_request) Successful in 3m53s
CI / tests (pull_request) Successful in 3m53s
This commit is contained in:
@@ -125,6 +125,7 @@ Every PR gets at least this sweep.
|
||||
- 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.
|
||||
- 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 it mocks, what wording it pins, whether another test already pins the behaviour, and whether it sleeps or reads the wall clock.
|
||||
- Does a test decide at run time whether to check anything, by a conditional skip, early return or catch around its assertions, as the technical principles' test bullet forbids? Flag it.
|
||||
- Are there untestable side effects that should be refactored?
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user