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

Notification

Icon
Error

ncrunch doesn't support nunit testcase
JasonMore
#1 Posted : Wednesday, December 7, 2011 10:07:55 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 5

Thanks: 1 times
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.
Remco
#2 Posted : Thursday, December 8, 2011 12:16:49 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 929 times
Was thanked: 1255 time(s) in 1168 post(s)
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
JasonMore
#3 Posted : Thursday, December 8, 2011 3:00:43 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 5

Thanks: 1 times
Awesome, thanks!
Remco
#4 Posted : Monday, December 19, 2011 8:09:35 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 929 times
Was thanked: 1255 time(s) in 1168 post(s)
The fix for the above problem has now been released as part of 1.36b.
JasonMore
#5 Posted : Tuesday, December 20, 2011 2:38:52 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 5

Thanks: 1 times
Awesome, downloading now!
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.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download