Ran across this gem of a comment in an old project...
gist.github.com/hawkw/5f386815ff8bbb1edbdaPosted Oct 2, 2013, 2:57 AM UTC
394
Posted Oct 2, 2013, 2:57 AM UTC
It reminds me of some old code I had to work with (provided by another company) with the following comment in it: "//If it fails here I have no idea what happend." Guess who had to find out what caused the error :(
In my Intro to Java course, we were required to write x amount of test cases for each assignment, and a ton of students did this exact type of thing. It was baffling.
Don't have enough assertions?
Unfortunately, we're forced to use code coverage tools, and if you don't test instantiation, you still have red in your project. :(