From 6631109a55bda83a60e383050330d5e5a44276f2 Mon Sep 17 00:00:00 2001 From: JonJagger Date: Tue, 17 Dec 2024 03:24:41 +0000 Subject: [PATCH] Save total_time metrics as a json number and not a string --- test/slim_json_reporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/slim_json_reporter.rb b/test/slim_json_reporter.rb index dc5c9ad..b18646b 100644 --- a/test/slim_json_reporter.rb +++ b/test/slim_json_reporter.rb @@ -8,7 +8,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,