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

Notification

Icon
Error

Markers do not update when tests switch between failing / passing state
vaskir
#1 Posted : Wednesday, April 16, 2014 7:10:57 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/16/2014(UTC)
Posts: 3
Location: Russia

NUnit + F#.

1. Write a single assertion failing test.
2. The ">" mark is green (SHOULD BE RED).
3. Add an empty line above the assertion.
4. The mark became red (OK).
5. Change the assertion such that the test pass now.
6. The mark is still red (WRONG).
7. Remove that empty line or add another one.
8. The mark became green (OK).

It's very severe bug I think.

It look like this: https://drive.google.com...U1Vuc2c/edit?usp=sharing
Remco
#2 Posted : Wednesday, April 16, 2014 7:13:39 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,978

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi,

Thanks for sharing this problem.

The steps that you've described would suggest that NCrunch is out of sync with the changes being made to your code.

Do you have a sample project you might be able to submit that can be used to reproduce this issue? You can submit code via the contact page.


Cheers,

Remco
Remco
#3 Posted : Wednesday, April 16, 2014 7:18:08 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,978

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Sorry, scratch that. I've reproduced the issue. I'll update you soon.
vaskir
#4 Posted : Wednesday, April 16, 2014 7:46:11 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/16/2014(UTC)
Posts: 3
Location: Russia

Oh, great!

Thanks for very quick response.
Remco
#5 Posted : Wednesday, April 16, 2014 8:01:24 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,978

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
This seems to have been a problem with the marker visual refresh. It would only affect source files that containing single line tests (i.e. tests with only a '>' marker but no normal line markers showing).

It's pretty unusual for a file to have only entry points showing and no covered lines. I guess this would be more common for F#, as it's possible for the first 'true' line of code to be actual code, where in C# it would be an opening brace.

I've prepared a fixed build if you're interested in giving it a try. This is an early build of v2.6, so you'll probably find a few useful changes in here. Do let me know if you notice anything wrong with the build, as I'm hoping to properly release it later this week.

http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.17.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.17.zip
http://downloads.ncrunch.net/NCrunch_VS2008_2.6.0.17.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.17.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.17.zip
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.17.msi
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.17.zip
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.17.msi
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.17.zip


Thanks for taking the time to report this problem!

Cheers,

Remco
vaskir
#6 Posted : Wednesday, April 16, 2014 9:24:00 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/16/2014(UTC)
Posts: 3
Location: Russia

I confirm the bug is fixed.

Thanks a lot!
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.043 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download