Skip to content

Commit

Permalink
Use integer for duration in cucumber json output. Fixes #409
Browse files Browse the repository at this point in the history
  • Loading branch information
timofurrer committed Oct 28, 2020
1 parent 013df98 commit 1685a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/radish/extensions/cucumber_json_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def generate_cucumber_json(cucumber_json_file, tag_expression, scenario_ids, fea
"line": step.line,
"result": {
"status": step.state.name.lower(),
"duration": step.duration().total_seconds() * 1e9,
"duration": int(step.duration().total_seconds() * 1e9),
},
}
if step.state is State.FAILED:
Expand Down

0 comments on commit 1685a48

Please sign in to comment.