Build/Test Issues

NCrunch incorrectly reporting tests as having the same name

Started by bartj on 4,548 views

NCrunch is reporting that two distinct NUnit tests have the same name, even though nunit-console.exe and the ReSharper test runner correctly report them as two different tests.

This test code is enough to trigger the incorrect warning from NCrunch:

[TestCase("abc")]
[TestCase("\x0007bc")]
public void NotDuplicates(string input)
{
}
Hi Bart,

Thanks for sharing this issue. I've reproduced it as described. We're talking about this internally and will get back to you soon.
Hi,

We've had a look at this. This was introduced in version 3.17.0.2 to improve the rendering of NUnit tests that have a TestCase attribute that contains escape characters or unicode. NUnit adds slashes to the testname that it reports back. We've tried improving on that rendering, but since it causes these side effects the change is rolled back. This rollback will be in the next release.

Again, thanks for sharing this with us!
Hi,

Will you be attempting to fix the original issue, or will the bug resurface in the next release?

Thanks,
Bart
For now we will not fix the original issue. Fixing it would mean deviating from how other test runners display the test name and we haven't thought of a better way to display the tests without introducing duplicate test names. For the time being we will show the test name as it is reported by nunit without any modification.

Post a reply

Log in to reply.