Class: Henitai::Reporter::Json
Overview
JSON reporter.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Henitai::Reporter::Base
Instance Method Details
#report(result) ⇒ Object
202 203 204 205 206 |
# File 'lib/henitai/reporter.rb', line 202 def report(result) FileUtils.mkdir_p(File.dirname(report_path)) File.write(report_path, JSON.pretty_generate(result.to_stryker_schema)) write_history_report end |