使用Fakes / Shims的测试在服务器上失败,但在本地成功

时间:2017-09-01 19:26:28

标签: testing server microsoft-fakes

使用Fakes / Shims的测试在构建服务器上失败,但在本地成功。

当我删除使用填充程序的测试时,以下错误消失了。我是否需要在构建服务器上进行任何特定配置?

另一方面,我在我的specflow测试用例中使用了填充程序。

Run has the following issue(s):
One of the background threads threw exception: 
System.NullReferenceException: Object reference not set to an instance of an object.
   at lambda_method(Closure , IContextManager )
   at TechTalk.SpecFlow.Bindings.BindingInvoker.InvokeBinding(IBinding binding, IContextManager contextManager, Object[] arguments, ITestTracer testTracer, TimeSpan& duration)
   at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireEvents(HookType bindingEvent)
   at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnTestRunEnd()
   at TechTalk.SpecFlow.TestRunner.OnTestRunEnd()
   at TechTalk.SpecFlow.TestRunnerManager.OnTestRunnerEnd()
   at TechTalk.SpecFlow.TestRunnerManager.

进一步调试会出现以下错误: Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitT estIsolationExceptio n:无法从COR_PROFILER_PATH和COR_PROFILER环境变量解析探查器路径。

0 个答案:

没有答案