With an otherwise empty project/solution, and all default NCrunch settings, the following test experiences very poor performance with the Visual Studio UI hanging for 1 - 2 seconds per keystroke; disabling NCrunch immediately resolves the issue.
Code:
internal class TestClass
{
private static IEnumerable<TestCaseData> TestCaseSource()
{
return Enumerable.Range(0, 10).Select(i => new TestCaseData(i).SetName(new string('*', 2000) + i.ToString()));
}
[TestCaseSource(nameof(TestCaseSource))]
public void Given_a_test_case_source_with_long_test_names_When_running_NCrunch_Then_the_Visual_Studio_UI_hangs_a_lot(int i)
{
Assert.That(i, Is.GreaterThan(0));
}
}
As the test names get longer or the number of tests with long names grows the slowdown seems to get exponentially worse. We've taken to presenting a MD5 hash of the test name to NUnit/NCrunch instead of the actual long name to avoid this issue but that is not very elegant.
NCrunch 3.12.0.15, Visual Studio 2017 15.5.6, Windows 10 64bit.