Skip to content

SpecFlow: Context error when using the SpecFlow.xUnit runner #431

@delatrie

Description

@delatrie

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

When using SpecFlow.xUnit, running any scenario results in the following error:

 Message: 
System.InvalidOperationException : No test context is active.

  Stack Trace: 
AllureContext.get_CurrentTest()
AllureLifecycle.UpdateTestCase(Action`1 update)
lambda_method47(Closure , IContextManager )
TestExecutionEngine.FireEvents(HookType hookType)
TestExecutionEngine.FireScenarioEvents(HookType bindingEvent)
TestExecutionEngine.OnScenarioEnd()
TestRunner.OnScenarioEnd()
SelectiveRunTestRunner.OnScenarioEnd()
ScenarioAndStepOutcomesFeature.TestTearDown()
IDisposable.Dispose()
ReflectionAbstractionExtensions.DisposeTestClass(ITest test, Object testClass, IMessageBus messageBus, ExecutionTimer timer, CancellationTokenSource cancellationTokenSource) line 79

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Just setup the project with the SpecFlow.xUnit runner.

What is the expected behavior?

No error is thrown, the scenarios are executed in the same way as they do with SpecFlow.NUnit.

Please tell us about your environment:

Other information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions