Skip to content

Commit

Permalink
benchmark-json-reporter: report failure to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 5, 2024
1 parent 2e688bd commit 1fd310d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/grntest/reporters/benchmark-json-reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ def on_test_success(worker, result)
end

def on_test_failure(worker, result)
output, @output = @output, $stderr
begin
report_failure(result)
ensure
@output = output
end
end

def on_test_leak(worker, result)
Expand Down

0 comments on commit 1fd310d

Please sign in to comment.