Hi,
Thanks for sending through the sample code. I was able to reproduce the problem and can confirm that it is related to the ExcludeFromCodeCoverage attribute, which seemed to be causing problems for NCrunch when applied at fixture level.
I've prepared a build that includes a fix for this problem. You're welcome to try it if you like:
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.7.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.7.zip
http://downloads.ncrunch.net/NCrunch_VS2008_2.6.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.7.zip
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.7.zip
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.7.zip
Alternatively, you can work around this problem by removing the ExcludeFromCodeCoverage attribute from your test fixtures. Applying this attribute at method (test) level will not cause the problem. You could also look into using code coverage suppression comments as an alternative.
Remco NCrunch Developer
#5563
19 Mar 2014 01:34 UTC