Class: Polyrun::Coverage::Formatter::HtmlFormatter
- Defined in:
- lib/polyrun/coverage/formatter.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Polyrun::Coverage::Formatter::Base
Instance Method Details
#write_files(result, output_dir, basename) ⇒ Object
106 107 108 109 110 111 |
# File 'lib/polyrun/coverage/formatter.rb', line 106 def write_files(result, output_dir, basename) path = File.join(output_dir, "#{basename}.html") title = (result. && result.["title"]) || (result. && result.[:title]) || "Polyrun coverage" File.write(path, Merge.emit_html(result.coverage_blob, title: title)) {html: path} end |