Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CODING_STANDARDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ A state the compiler refuses needs no test and cannot return unnoticed.
test with a defective assertion (checking steps, configuration, or file
layout; copying expected values from code; unable to fail; or covering removed
behaviour); never rewrite, retitle, or replace it. Fix a test whose only fault
is how it reaches the code (an internal import or real clock). Deleting a
is how it reaches the code (an internal import, a real clock, or a boundary,
entrypoint or protocol that moved while the behaviour stayed). Deleting a
worthless test is welcome and does not count as lost coverage. When a valid
test fails, fix the code under test, not the test.
- Why: reshaping a bad test keeps its cost and false confidence; weakening a
Expand Down