Skip to content

Commit

Permalink
Adopting HtmlReporter for new Minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
os97673 committed Feb 5, 2018
1 parent e4fe0a3 commit 4e69251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minitest/reporters/html_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def report
erb_str = File.read(@erb_template)
renderer = ERB.new(erb_str)

tests_by_suites = tests.group_by(&:class) # taken from the JUnit reporter
tests_by_suites = tests.group_by { |test| test_class(test) } # taken from the JUnit reporter

suites = tests_by_suites.map do |suite, tests|
suite_summary = summarize_suite(suite, tests)
Expand Down

0 comments on commit 4e69251

Please sign in to comment.