Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's not a counter-argument. Why don't you need to mock out the interfaces that you're not testing?




why would I? Either the code works either way or I'm glad to know I broke things when the seemingly unrelated tests breaks. Remember if a test fails the fault is almost always the last thing I changed.

now I do take care to avoid writing tests that depend on other code's results that would be likely to change. This hasn't proven to be the problem I've so often been warned about though.


> Either the code works either way or I'm glad to know I broke things when the seemingly unrelated tests breaks

...or, you tested each thing individually, so only related tests break and you can quickly zero in on the problem. Isn't that easier?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: