I have a few switch statements that are one line of code and a "break" statement, and I noticed that NCrunch only showed coverage for the "break" line. I stepped through the application to make sure I wasn't crazy, and the one line of code was indeed hit during my tests.
Build/Test Issues
In switch statements that are one line of code and a "break" statement, only "break" shows coverage
Started by dhgoldman on 6,552 views
Remco NCrunch Developer
#698
08 Dec 2011 00:18 UTC
Yes - there is a defect in here around the code coverage marking on switch statements. Not all of the coverage markers on these statements are 100% accurate. This issue also seems to affect reported coverage around some inline delegates. Thanks for reporting the issue. It will be fixed.
Post a reply
Log in to reply.