Closed iaroslav-ciupin closed 1 month ago
@l3pp4rd @lonnblad can somebody of you take a look and confirm if bug is valid? also please note 2nd question about time duration units
https://github.com/cucumber/godog/pull/616 opened a PR for 1st part
Looks like both godog and latest version of cucumber-html-reporter are using nanoseconds and report shows duration as expected. I was initially using cucumber-html-reporter 3.0.4 as was mentioned here, which apparently doesn't expect nanoseconds. Closing issue as done.
👓 What did you see?
Produced following report.json
✅ What did you expect to see?
1st step should have duration of 1 second. 2nd step should have duration of 2 seconds.
📦 Which tool/library version are you using?
github.com/cucumber/godog v0.14.0
🔬 How could we reproduce it?
Feature file:
Go test file:
📚 Any additional context?
Also not clear if duration should be rendered in nanoseconds or milliseconds. When I generate HTML report using https://github.com/myie/cucumber-html-reporter as Readme suggests, I get wrong values in HTML, because
cucumber-html-reporter
assumes duration is in milliseconds. Who is wrong here? is there a well-documented standard for Cucumber json format?