Hi,
i discovered a problem on a test suite in a project, NCrunch helped to find the problem, but i maybe could give more information.
Here is the problem.
The complete description, Stacktrace and more you find in the repro repository.
https://github.com/DerAlbertCom/MisbehavingUnittestRunnersBut because of this part in the Stacktrace
Quote:
at Xunit.Sdk.TestFrameworkDiscoverer.FindTestsForTypeAndWrapExceptions(ITestClass testClass, Boolean includeSourceInformation, IMessageBus messageBus, ITestFrameworkDiscoveryOptions discoveryOptions) in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\TestFrameworkDiscoverer.cs:line 156
at nCrunch.Module.XUnit2.Integration.XUnit2DiscoveryEnvironment.FindFrameworkTestsInAssembly(ReflectedAssembly assembly, FilePath assemblyFilePath, IList`1 referencedAssemblyFilePaths, ComponentUniqueName testComponentUniqueName, PlatformType platformType, DynamicProxy[] dynamicProxies)
I assume that
FindTestsForTypeAndWrapExceptions gets called for every type in an assembly, so NCrunch could catch the exception and report the type name on which the error occured. In an ideal case xUnit would report TypeName and MethodName, i will file an issue for that. But a long that don't happend it would be nice if NCrunch could tell the Type AND also go on with the analysis on the rest of the types in the assembly.