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

Notification

Icon
Error

TestCase attribute with ">" fails to run
JeetKunDoug
#1 Posted : Tuesday, December 13, 2011 4:08:38 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/2/2011(UTC)
Posts: 2

Any test case with a ">" symbol in it's data will fail to run in 1.35b. Simple reproduction:

using NUnit.Framework;

namespace NCrunchTestCase
{
[TestFixture]
public class TestCaseTests
{
public int counter = 0;
[TestCase("A", Description = "This will run")]
[TestCase(">", Description = "Greater than breaks NCrunch - this test doesn't run")]
[TestCase("B", Description = "This will run")]
public void GreaterThanInTestCaseBreaksNCrunch(string input)
{
counter++;
Assert.Pass("Made it here with input {0}.", input);
}

[TestFixtureTearDown]
public void TearDown()
{
Assert.That(counter, Is.EqualTo(3), "Did not run all tests.");
}
}
}

Note that only 2 tests run, and if you look at the output you'll see that only A and B were passed into the test. I also submitted a bug report.
Remco
#2 Posted : Tuesday, December 13, 2011 8:21:53 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi, thanks for reporting this problem.

v1.36b (due for release before Christmas) has completely rewired the NUnit integration around test cases and has this problem resolved, so hopefully you won't need to deal with it for long.


Cheers,

Remco
monkeywoo
#3 Posted : Wednesday, June 6, 2012 2:32:03 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 1

I am still experiencing this issue with 1.39.0.15b
Remco
#4 Posted : Wednesday, June 6, 2012 10:55:50 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi Monkeywoo,

What is your current setting for the 'Framework utilisation type for NUnit' under your NCrunch solution configuration? Does the problem go away if you change this setting?


Cheers,

Remco
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.039 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download