-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding start and end time in cucumber json #474
base: main
Are you sure you want to change the base?
Adding start and end time in cucumber json #474
Conversation
@@ -89,7 +89,7 @@ def generate_ccjson(self, features, marker): | |||
"keyword": step.sentence.split()[0], | |||
"name": step.sentence, | |||
"line": step.line, | |||
"result": {"status": step.state, "duration": duration}, | |||
"result": {"status": step.state, "duration": duration,"starttime": str( step.starttime if step.starttime else 0.0), "endtime": str( step.endtime if step.endtime else 0.0)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the case where step.starttime or step.endtime are not truthy? and is 0.0
a good default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think thats valid according to the cucumber spec https://github.com/cucumber/messages/blob/main/messages.md#teststepresult
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #474 +/- ##
=======================================
Coverage 87.25% 87.25%
=======================================
Files 39 39
Lines 2377 2377
=======================================
Hits 2074 2074
Misses 303 303
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Also please run
|
And please add a note for the change to the |
PR is a part of #473
Describe Your Changes
adding start and end time of the step in cucumber.json
fixes #473