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/file/d/0B8HLQUKik9VtQWhrbVZ0U1Vuc2c/edit?usp=sharing
Build/Test Issues
Markers do not update when tests switch between failing / passing state
Started by vaskir on 6,284 views
Remco NCrunch Developer
#5678
16 Apr 2014 07:13 UTC
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
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
Edited 16 Apr 2014 07:14 UTC
Remco NCrunch Developer
#5679
16 Apr 2014 07:18 UTC
Sorry, scratch that. I've reproduced the issue. I'll update you soon.
Edited 16 Apr 2014 07:18 UTC
Oh, great!
Thanks for very quick response.
Thanks for very quick response.
Remco NCrunch Developer
#5681
16 Apr 2014 08:01 UTC
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
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
I confirm the bug is fixed.
Thanks a lot!
Thanks a lot!
Post a reply
Log in to reply.