Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NCrunch doesn't mark lines as covered by tests, but they are

I have just started using NCrunch and have some classes where the markers show there is no coverage, but I have tests which NCrunch is running successfully.

When I edit the class (just add a space) the markers go green for a short while, then return to black. Why might this be?

like image 724
Sam Holder Avatar asked Oct 26 '25 19:10

Sam Holder


2 Answers

I had this happen today and just a simple VS restart fixed it. You can also try resync button which is the 6th from the left of the NCrunch Tests window.

like image 87
Christopher Rathermel Avatar answered Oct 28 '25 18:10

Christopher Rathermel


I think I had the same problem based on the description. It also appeared to affect coverage stats as well as the visual markers. I was running NCrunch 1.39.15b on VS2010. Re-syncing and reloading VS2010 did not fix it. I eventually uninstalled NCrunch and upgraded to 1.41.0.50 and the problem went away. It might have been a bug in NCrunch, but I'm not sure. At any rate, try upgrading your NCrunch installation and see if that works.

like image 31
killthrush Avatar answered Oct 28 '25 18:10

killthrush



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!