Skip to content

Commit

Permalink
benchmark-json-reporter: ignore empty benchmark case
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 5, 2024
1 parent e5aeb87 commit 8565a18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/grntest/reporters/benchmark-json-reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def on_test_no_check(worker, result)
end

def on_test_finish(worker, result)
return if result.benchmarks.empty?
benchmarks = result.benchmarks.collect do |benchmark|
<<-JSON.chomp
{
Expand Down

0 comments on commit 8565a18

Please sign in to comment.