Open smmaya opened 7 months ago
OK, 2 weeks passed with no response, but I managed to find the cause for my livingdoc html report being created BEFORE the TestExecution.json being updated. In my LivingDocHooks class, I simply changed from process.WaitForExit(); to process.WaitForExitAsync(); and now I am getting the right data in the report. You can close this bug, thanks.
SpecFlow Version
3.9.57
Which test runner are you using?
xUnit
Test Runner Version Number
2.5.8
.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
Visual Studio Test Explorer
SpecFlow Section in app.config or content of specflow.json
No response
Issue Description
There seems to be a issue with what is being passed to the html report. Each time I run all tests (or a test, depending on hooks), a new TestExecution.html is created based on the TestExecution.json, nothing new here. BUT, what I see in the actual report is not the last run, but the one before the last one.
I have no idea if this is a date/time issue as the json "GenerationTime": "0001-01-01T00:00:00" has this value??? The time on the report is 2 minutes late as the files were created at 15h14
This is what I call it with:
Any help is much appreciated.
Steps to Reproduce
Say you set the livingdoc hooks to [AfterFeature] to be faster so you don't wait for all tests to run And that we have those two tests:
Test A
Test B
Run Test A => if this is the first time you run it, no html report created yet, you will get an empty report Run Test B => now in the report you will see the test run results for the Test A
Link to Repro Project
No response