Build/Test Issues

Contradicting Success/Failure Indicator

Started by emadashi on 4,933 views

Hi guys,

Anyone came across a situation where the icon of exception is actually green? the unit test run indicates success, yet there is an exception icon that is green, and if I click on it I see details of the exception.

Also, is there a way to post the screenshot to this forum? Or I have to find a hosting service and link the image here (not nice if true)?
Hi, thanks for posting.

There are two known ways that this can happen. Both are by design:

1. When using an expected exception attribute (syntax depends on framework), NCrunch can catch the expected exception and report this as an X, but the test is still a pass.

2. When debugging using NCrunch, NCrunch won't update code coverage from the debug session because the debugger can corrupt this data (i.e. caused by pausing over lines when stepping etc). NCrunch will still, however, update the pass/fail result of the test. This means that you can have a test that passed the debug run and has green dots but the coverage data was from a previous run.

Edited

Thanks Remco, I believe it was point 2 in my case.

Post a reply

Log in to reply.