LoadPackage(testFile); TestEngine = TestEngineActivator.CreateInstance(); TestEngineRunner = TestEngine.GetRunner(_package); Tests = new TestNode(TestEngineRunner.Explore(TestFilter.Empty));
NUnit.Engine.NUnitEngineException: 'An exception occurred in the driver while loading tests.' FileNotFoundException: Could not load file or assembly 'TestingFramework, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
StackOverflowException, so naturally the process crashes.
process=Single). Turned out to be that I had forgotten to enable tail calls when I converted a F# project to the new project file format. The reason I did not see the problem every time was that the test causing the trouble in turn invoked FsCheck (generating random tests).
NUnit.Engine.NUnitEngineException : Error encountered in resolving output specification: OutputPath: ..\Tests\TestRes ult.xml, Format: nunit2 ----> System.IO.FileNotFoundException : Could not load file or assembly 'nunit.engine.api, Version=126.96.36.199, Culture =neutral, PublicKeyToken=2638cd05610744eb' or one of its dependencies. The system cannot find the file specified.
[06.10.2020 PM 06:20:33 Warning] Exception NUnit.Engine.NUnitEngineUnloadException, Exception thrown unloading tests from D:\Git\Tests\Test\bin\x86\Debug\Test.dll [06.10.2020 PM 06:20:33 Warning] Unable to unload application domain: unload thread timed out after 30 seconds. Application domain was unloaded before all details could be read. [06.10.2020 PM 06:20:33 Warning] at NUnit.Engine.Services.DomainManager.DomainUnloader.Unload() at NUnit.Engine.Runners.TestDomainRunner.UnloadPackage() at NUnit.Engine.Runners.AbstractTestRunner.Unload() at NUnit.Engine.Runners.MasterTestRunner.UnloadPackage() at NUnit.Engine.Runners.MasterTestRunner.Unload() at NUnit.VisualStudio.TestAdapter.NUnitEngine.NUnitEngineAdapter.CloseRunner() at NUnit.VisualStudio.TestAdapter.NUnit3TestExecutor.RunAssembly(String assemblyPath, IGrouping`2 testCases, TestFilter filter) [06.10.2020 PM 06:20:33 Informational] NUnit Adapter 188.8.131.52: Test execution complete [06.10.2020 PM 06:20:33 Error] An exception occurred while invoking executor 'executor://nunit3testexecutor/': Exception encountered unloading application domain Exception encountered unloading application domain: Attempted to access an unloaded appdomain. (Exception from HRESULT: 0x80131014) Application domain was unloaded before all details could be read. [06.10.2020 PM 06:20:33 Informational] ========== Run test finished: 1 run (0:03:11.1407897) ==========
@mikkelbu Wow, I missed this:
do you know if it will be a problem that our pdb files mentions unknown files (or more precisely temp-files)?
I don't know of any downside to this. It's been the norm for pdb files to not be found.
I like to use
<EmbedAllSources>true</EmbedAllSources> in my Directory.Build.props though.