Hello TechTalk,
I'v been trying to use testThreadIsolation="SharedAppDomain". This is unfortunatly broken.
As soon, as you try to execute Tests for more than one target, the test execution will fail for all targets except the first.
Here is the stacktrace:
[ERROR] Add two numbers: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei TechTalk.SpecRun.Framework.TestAssemblyExecutor.<InitSpecRunner>b__17_1(StepType stepType)
bei TechTalk.SpecRun.EventsClass.RaiseStartStep(StepType stepType)
bei TechTalk.SpecRun.SpecRunner.StartArrangeStep()
bei TechTalk.SpecRun.SpecFlowPlugin.Runtime.SpecRunListener.WriteTestOutput(String message)
bei TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStep(StepInstance stepInstance)
bei TechTalk.SpecFlow.TestRunner.Given(String text, String multilineTextArg, Table tableArg, String keyword)
bei SharedAppDomainNullPointerException.SpecFlowFeature1Feature.AddTwoNumbers()
bei TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.ExecuteInternal(ITestThreadExecutionContext testThreadExecutionContext)
bei TechTalk.SpecRun.Framework.TestAssemblyExecutor.ExecuteTestNodeTask(TestNode testNode, ITaskExecutor task, TraceEventType eventType)
To reproduce this error, just use the demo feature with all methods empty, so they all succeed and configure Default.srprofile like:
<Environment testThreadIsolation="SharedAppDomain" />
<Targets>
<Target name="target1" />
<Target name="target2" />
</Targets>
Tx leo