Reputation: 3251
I'm using Visual studio Premium 2012.
In unit testing, It shows only number of blocks that's not covered, But it doesn't show which block I doesn't cover.
In visual studio 2010, it shows number of blocks that's not covered and also which block I didn't cover in different color.
How to know which block I didn't cover ? How to use VS premium 2012 to know which block I didn't cover ?
Upvotes: 2
Views: 3423
Reputation: 2284
Test -> Analyze Code Coverage -> All test. Once that is done you open the Code Coverage Results window (under Test -> Windows) click Show Code Coverage Coloring.
Upvotes: 1
Reputation: 770
I have done some research for you and I got something you might find useful:
http://msdn.microsoft.com/en-us/library/dd537628(v=vs.110).aspx
Unit test:
| http://msdn.microsoft.com/en-us/library/dd264975(v=vs.110).aspx
This Link shows how to display block which are not beeing covered...
| http://msdn.microsoft.com/en-us/library/jj159340.aspx
For VS 12.
I hope this can help you solve your problem..
Upvotes: 5