Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

PrajwalParvati
Copy link

@PrajwalParvati PrajwalParvati commented Nov 21, 2024

PR is a part of #473
Describe Your Changes
adding start and end time of the step in cucumber.json

fixes #473

@@ -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)},
Copy link
Member

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?

Copy link
Member

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

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.25%. Comparing base (084622e) to head (665c36f).

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           
Flag Coverage Δ
unittests 87.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@fliiiix
Copy link
Member

fliiiix commented Nov 23, 2024

Also please run black to format

Oh no! 💥 💔 💥
2 files would be reformatted, 127 files would be left unchanged.

@fliiiix
Copy link
Member

fliiiix commented Nov 23, 2024

And please add a note for the change to the CHANGELOG.md file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding the start time and end time of the step for cucumber json
2 participants