我有一个包含100个测试的项目。其中一些运行良好,其他人只是说Inconclusive - 测试不运行。这些测试在过去运行良好。此外,我得到以下错误,我相信是相关的。如果我逐个运行它们,这些测试运行正常。
2016.12.19 16:33:25.658 ERROR JetBrains.ReSharper.UnitTestRunner.nUnit.CodeDom.CompileException: NUnit runner compilation failed
(0:0) Error generating Win32 resource: The system cannot find the path specified.
Server stack trace:
at JetBrains.ReSharper.UnitTestRunner.nUnit.CodeDom.RunnerTypeCompiler.AssertCompilationResultsHaveNoErrors(CompilerResults compilerResults)
at JetBrains.ReSharper.UnitTestRunner.nUnit.CodeDom.RunnerTypeCompiler.CompileIntoAssembly(String outputPath, Assembly resourceAssembly, String[] resourcesToCompile, String[] assembliesToReference)
at JetBrains.ReSharper.UnitTestRunner.nUnit30.DelegatingTestRunner.GetRunner(String nUnitInstallDir, TaskExecutorConfiguration configuration, SimpleLogger logger) in c:\Build Agent\work\10282fe47e6c6213\Psi.Features\UnitTesting\nUnit\Runner30\Src\DelegatingTestRunner.cs:line 70
at JetBrains.ReSharper.UnitTestRunner.nUnit30.DelegatingTestRunner.RunTests(IRemoteTaskServer server, List`1 assemblies, Dictionary`2 tests, Dictionary`2 fixtures, List`1 explicitly, Boolean useAddins, String nUnitInstallDir, TaskExecutorConfiguration configuration, SimpleLogger logger) in c:\Build Agent\work\10282fe47e6c6213\Psi.Features\UnitTesting\nUnit\Runner30\Src\DelegatingTestRunner.cs:line 43
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at JetBrains.ReSharper.UnitTestRunner.nUnit.INUnitRunner.RunTests(IRemoteTaskServer server, List`1 assemblies, Dictionary`2 tests, Dictionary`2 fixtures, List`1 explicitly, Boolean useAddins, String nUnitInstallDir, TaskExecutorConfiguration configuration, SimpleLogger logger)
at JetBrains.ReSharper.UnitTestRunner.nUnit.NUnitTaskRunner.Run(String nUnitInstallDir, String assmbl, Boolean useAddins)
at JetBrains.ReSharper.UnitTestRunner.nUnit.NUnitTaskRunner.RunTestsInAssemblies(List`1 assemblies, NUnitTestAssemblySetTask assemblySetTask, Boolean useAddins, NUnitVersion nUnitVersion)
at JetBrains.ReSharper.UnitTestRunner.nUnit.NUnitTaskRunner.ExecuteRecursive(TaskExecutionNode node)
at JetBrains.ReSharper.TaskRunnerFramework.StartupTaskRunnerHost.Execute(TaskExecutionNode node)
at JetBrains.ReSharper.TaskRunnerFramework.StartupTaskRunnerHost.ExecuteNodes(IEnumerable`1 nodes)
at JetBrains.ReSharper.TaskRunnerFramework.TasksPacketHandler.ThreadProc(TaskRunnerProxy proxy, IEnumerable`1 packets, AssemblyLoader loader)
答案 0 :(得分:3)
这是Resharper最新版本(" 2016.3")的错误。这里有更多细节...... https://youtrack.jetbrains.com/issue/RSRP-462284 如果您有多个测试程序集,则会出现此问题。