Build/Test Issues

ncrunch doesn't support nunit testcase

Started by JasonMore on 7,945 views

I have a test that causes ncrunch to stop working when I have this test in my test suite:

[TestCase("", Result = 3)]
[TestCase("Jason", Result = 2)]
[TestCase("More, Jason", Result = 1)]
[TestCase("Foo", Result = 2)]
[TestCase("Zach", Result = 0)]
public int CustomerSearchQueryBasic(string query)
{
//test stuff
}

when I comment it out, ncrunch starts working again. The bad thing is it doesn't let me know it stops working, it just stops and reports everything green.
Hi Jason,

Thanks for posting. These test cases are failing because of an instrumentation defect that causes NCrunch to bug out while processing a file with named attributes. Therefore you'll find that removing the 'Result =' on the TestCase attribute will allow the tests to execute in NCrunch (though you would need to re-engineer your test to work around this).

The instrumentation defect has been resolved in the upcoming 1.36b build and should be released soon.


Cheers,

Remco
Awesome, thanks!
The fix for the above problem has now been released as part of 1.36b.
Awesome, downloading now!

Post a reply

Log in to reply.