I have a problem similar to:
https://forum.ncrunch.ne...runs-tests-forever.aspx
With a large complex project that has more than 68,000 tests. The tests all run individually, but when combined they fail. I tried following through post above, but still have the problem.
In an effort to simplify the issue I have created a test project with a number of tests that look like this:
Code:
[Test]
public static void Test0vs0()
{
//arrange
var x = new SimpleClass();
//act
var value = x.Equal(0, 0);
//assert
Expect(value, Is.True);
}
[Test]
public static void Test0vs1()
{
//arrange
var x = new SimpleClass();
//act
var value = x.Equal(0, 1);
//assert
Expect(value, Is.False);
}
The Equal method of SimpleClass looks like this:
Code:
public bool Equal(byte a, byte b)
{
if (a < b)
return false;
if (a > b)
return false;
return true;
}
Obviously this is a simple test, but when there are more than 5,500 tests they fail with:
"NCrunch was unable to retrieve a meaningful result from this test due to an unexpected error - was the execution process terminated?"
The tests run individually and when batched as 8 tests at a time. But when all run together they fail.
Currently I am running NCrunch 4.3.0.13, but this problem has existed for a number of versions.
Is it possible to have a parameter that limits the number of tests that can be grouped together?
Would this actually solve the problem?
Any help or guidance would be appreciated.