|
Writing tests that are actually useful - what to test and what not to bother with - Printable Version +- TalkativeTurtles (https://talkativeturtles.club) +-- Forum: Technology (https://talkativeturtles.club/forumdisplay.php?fid=2) +--- Forum: Programming & Development (https://talkativeturtles.club/forumdisplay.php?fid=9) +--- Thread: Writing tests that are actually useful - what to test and what not to bother with (/showthread.php?tid=99) |
Writing tests that are actually useful - what to test and what not to bother with - Zero Two - 06-22-2026 Testing advice tends to swing between "test everything" (impractical) and "testing is a waste of time" (wrong). Here's a more nuanced take after years of both writing and maintaining test suites. What to definitely test:
What's often not worth testing:
Test pyramid in practice: lots of fast unit tests on business logic, fewer integration tests at the service boundary, a handful of end-to-end tests for critical paths. Not the other way around. The best metric: does the test suite give you confidence to refactor and ship? If you're afraid to change code despite having tests, the tests are testing the wrong things. |