Closed saliej closed 1 year ago
I've decided to use the CI Nuget Feed until the fix officially released.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
SpecFlow Version
4.0.16-beta
Which test runner are you using?
xUnit
Test Runner Version Number
4.0.16-beta
.NET Implementation
.NET 6.0
Project Format of the SpecFlow project
Sdk-style project format
.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation NuGet package
Test Execution Method
Command line – PLEASE SPECIFY THE FULL COMMAND LINE
SpecFlow Section in app.config or content of specflow.json
No response
Issue Description
Command executed by Github action:
dotnet test MyTestProject.IntegrationTests --no-build --verbosity normal --logger "console;verbosity=detailed"
I suspect this problem is a timing issue related this bug: https://github.com/SpecFlowOSS/SpecFlow/issues/2608
... because in the Github action log I observe the following errors:
The lines prefixed by
***
are the Feature Background and ScenarioCleanup methods respectively. It seems like the Cleanup is occurring before the Background method has completed.The generated code looks like this:
The related bug is after
#line 3
(the call is not awaited).Is there a suitable workaround for this problem, or should I just wait for the next release that includes the fix?
Steps to Reproduce
Execute a Specflow test that disposes required services via a Github action using Specflow 4.0.16-beta
Link to Repro Project
No response