Skip to content

Commit

Permalink
benchmark-json: add test suite name to benchmark name
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 5, 2024
1 parent 6e85226 commit dae89e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/grntest/reporters/benchmark-json-reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ def on_test_no_check(worker, result)
def on_test_finish(worker, result)
return if result.benchmarks.empty?
benchmarks = result.benchmarks.collect do |benchmark|
name = "#{worker.suite_name}/#{result.test_name}"
<<-JSON.chomp
{
"name": #{result.test_name.to_json},
"name": #{name.to_json},
"run_name": #{benchmark.name.to_json},
"run_type": "iteration",
"iterations": #{benchmark.n_iterations},
Expand Down

0 comments on commit dae89e2

Please sign in to comment.