Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Contradicting Success/Failure Indicator
emadashi
#1 Posted : Thursday, March 30, 2017 2:11:40 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2014(UTC)
Posts: 2
Location: Australia

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
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)?
Remco
#2 Posted : Thursday, March 30, 2017 2:16:10 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
1 user thanked Remco for this useful post.
emadashi on 3/30/2017(UTC)
emadashi
#3 Posted : Thursday, March 30, 2017 2:53:56 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2014(UTC)
Posts: 2
Location: Australia

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Thanks Remco, I believe it was point 2 in my case.
1 user thanked emadashi for this useful post.
Remco on 3/30/2017(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download