Daily Usage Issues

TestCase attribute with ">" fails to run

Started by JeetKunDoug on 7,869 views

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.
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
I am still experiencing this issue with 1.39.0.15b
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

Post a reply

Log in to reply.