Fix dumb with JUnit and HTML output

This commit is contained in:
Michael Miller 2021-08-19 13:55:58 -06:00
parent 09414e611b
commit 09dcbdb383
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -166,6 +166,7 @@ module Spectator
json_option(parser, builder)
tap_option(parser, builder)
junit_option(parser, builder)
html_option(parser, builder)
no_color_option(parser, builder)
end
@ -219,7 +220,7 @@ module Spectator
end
# Adds the HTML output option to the parser.
private def junit_option(parser, builder)
private def html_option(parser, builder)
parser.on("--html_output OUTPUT_DIR", "Generate HTML output") do |output_dir|
Log.debug { "Setting output format to HTML (--html_output '#{output_dir}')" }
formatter = Formatting::HTMLFormatter.new(output_dir)