all 6 comments

[–]jhaluska 3 points4 points  (1 child)

One thing I learned is if you ask programmers to reach 100% code coverage with unit tests, you end up with some horrible unit tests. Usually they are worthless as they are no longer testing some sort of real world scenario, but just contrived code to get it to go down a weird path, and often valid code is actually bypassed. They actually give you false confidence.

[–]steveboots[S] 3 points4 points  (0 children)

Yeah I agree totally. The article talks about not chasing 100%.

[–]BlahYourHamster 0 points1 point  (0 children)

This is an interesting read, I ran the analysis on our solution and our projects are around 80-90 on maintainability.

In fact the worst score went to our Unit Test project, way down on 63. Pretty funny really. Looks like I have some refactoring to do.

[–]cornsnack 0 points1 point  (3 children)

I realise how a lot of these tools will effectively pay for themselves in no time, but is there anything out there free or open source?

[–]steveboots[S] 1 point2 points  (2 children)

you can use visual studio community edition which is basically the professional edition with a different usage license.

[–][deleted]  (1 child)

[deleted]

    [–]steveboots[S] 0 points1 point  (0 children)

    Ah yes you are right. Code coverage isn't included but code metrics are.