vendredi 1 septembre 2017

Tests that use Fakes/Shims fail on server, but succeed in local

Tests that use Fakes/Shims fail on build server, but succeed in local.

This following error is gone when I remove the test that uses shims. Do I need to do any specific configuration on build server? On a side note, I'm using shims in my specflow test cases.

> 

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.

Aucun commentaire:

Enregistrer un commentaire