Library › Book 26 › Killing Bad Tests
Killing Bad Tests
15.1🔒The Test That Should Not ExistThere is a belief in the testing world that more tests are always better. This belief is wrong, and it leads to test suites that are…
15.2🔒Identifying Tests to DeleteA tautological test is a test that cannot fail. The most common form is a test that mocks a dependency, then asserts that the mock returned…
15.3🔒Cost Analysis of TestsEvery test has a cost:
15.4🔒Career Translation- Led a test suite curation initiative that deleted 340 low-value tests (28% of the suite), reducing CI pipeline runtime by 35% and…
15.5🔒Q&AInterview Depth CheckPrompt: Your team has a 2,000-test suite that takes 90 minutes to run. Leadership wants it faster. How do you decide which tests to delete?…