HN2new | past | comments | ask | show | jobs | submitlogin
If you have 90% unit test coverage, you probably have some stupid tests (github.com/rluckom)
2 points by zipfle on Oct 15, 2016 | hide | past | favorite | 1 comment


I feel that the post misses one major point in unit tests and coverage: you want to verify your error paths. Without mocks or injection of some sort, how are you to validate your error handling? I'm a big fan of integration tests because they make sure things work. But an integration test will have trouble forcing an error out of a dependency.




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

Search: