Hacker News new | ask | show | jobs
by leemcalilly 1588 days ago
I find my system/integration tests to be the most valuable because those test the behavior of my code, what the end user cares about.

It often helps to start with the design first (even if just a napkin sketch). Once I’ve done that I usually have enough information to write system tests (which also forces me to consider edge cases). Then I can then fill in with unit tests as needed as I write the code to get the system tests for that feature passing.