You see, the more I practice Test Driven Development, the more inclined I am to believe that there are only three reasons for arguing against 100% code coverage.
Continue reading “3 Reasons You Believe 100% Code Coverage Is Impossible”
The main tools we will be using to pull this off are Karma and Istanbul. The test we write will be using Jasmine.
If you don’t use Visual Studio, you should still be able to adapt these instructions to your own environment. I’ve found getting Istanbul setup kind of tricky at times. Since everything I’m going to show you here is pure Node.JS, you can ignore the Visual Studio parts.
Let’s get started.
In response to my post “Excuses For Not Testing” Kris K asked:
There is also another side of Unit Tests. Some companies are so fixated they aspire to have 100% Unit Tests coverage and they make programmers write Unit Tests for legacy code for no reason. Just for the sake of having Unit Tests. … [I] wonder if you had any similar experiences and what you think about this approach. I guess the 100% extreme is better than no tests at all, but it can make the developers very bored and feeling useless.
And my initial reaction to this was, “WOW! So much to respond to here. I think this is worth a blog post. Continue reading “100% Code Coverage Possible?”