DEV Community

Discussion on: The guilt of not testing everything

jlhcoder profile image
James Hood

Nice post! I got over his guilt after I had to maintain a set of selenium tests that took 8+ hours to run and were flaky on top of it. šŸ˜± Now I give my teams strong guidance on not even thinking of integration level testing in terms of coverage percentages, but rather overall risk management. I'm also an advocate of white box integration tests where you mock certain layers to test your highest risk/complexity areas of code in a controlled, fast-running environment.