I have a silly issue.
We have a test (MsTest) that receives the parameters from a method. The test looks like this:
Code:
[TestMethod]
[DynamicData(nameof(GetAllUnitTestProviders), DynamicDataSourceType.Method)]
public void GeneratorAllIn_sample_can_be_handled(UnitTestProvider unitTestProvider)
{
...
}
public static IEnumerable<object[]> GetAllUnitTestProviders()
{
return [
[UnitTestProvider.MSTest],
[UnitTestProvider.NUnit3],
[UnitTestProvider.xUnit],
[UnitTestProvider.xUnit3],
[UnitTestProvider.TUnit],
];
}
NCrunch shows this as a single test, which is not ideal, but I guess there is a good reason for it (would be super great to have them as multiple tests tough). The problem is that even though this is multiple tests, the timeout setting is still applies once. These are slow tests (~30sec per test), the timeout is set to 2 minutes, but since this runs 5 tests in reality, it regularly stops with a timeout. I could of course increase the global timeout, but that's not practical for the other tests.
Is there a solution? Could ncrunch multiply the timeout as well for such cases?
Thx!