Skip to content

Commit

Permalink
Merge pull request #79 from cyber-dojo/fix-metrics-type
Browse files Browse the repository at this point in the history
Ensure total_time in metrics is a number and not a string
  • Loading branch information
JonJagger authored Dec 17, 2024
2 parents ec21774 + 735a534 commit b01b1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/slim_json_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def report
super
filename = "#{ENV.fetch('COVERAGE_ROOT')}/test_metrics.json"
metrics = {
total_time: format('%.2f', total_time),
total_time: total_time.round(2),
assertion_count: assertions,
test_count: count,
failure_count: failures,
Expand Down

0 comments on commit b01b1bb

Please sign in to comment.