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 3 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

@@ -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

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.18%. Comparing base (ee1ea0b) to head (679bbb1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #474   +/-   ##
=======================================
  Coverage   87.18%   87.18%           
=======================================
  Files          39       39           
  Lines        2380     2380           
=======================================
  Hits         2075     2075           
  Misses        305      305           
Flag Coverage Δ
unittests 87.18% <ø> (ø)

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:

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.

2 participants