Module: Henitai::Reporter
- Defined in:
- lib/henitai/reporter.rb,
lib/henitai/reporter/dashboard_metadata_provider.rb,
sig/henitai.rbs
Overview
Namespace for result reporters.
Each reporter receives a Result object and writes output in its specific
format. Reporters are selected via reporters: in .henitai.yml.
Built-in reporters:
terminal — coloured summary table to STDOUT
json — mutation-testing-report-schema JSON file
html — self-contained HTML using mutation-testing-elements web component
dashboard — POST to Stryker Dashboard REST API
Defined Under Namespace
Classes: Base, Dashboard, DashboardMetadataProvider, DryRun, Github, Html, Json, Terminal
Class Method Summary collapse
Class Method Details
.reporter_class(name) ⇒ Object
35 36 37 38 39 |
# File 'lib/henitai/reporter.rb', line 35 def self.reporter_class(name) const_get(name.capitalize) rescue NameError raise ArgumentError, "Unknown reporter: #{name}. Valid reporters: terminal, json, html, dashboard, github" end |
.run_all(names:, result:, config:, history_store: nil) ⇒ void
This method returns an undefined value.
29 30 31 32 33 |
# File 'lib/henitai/reporter.rb', line 29 def self.run_all(names:, result:, config:, history_store: nil) names.each do |name| reporter_class(name).new(config:, history_store:).report(result) end end |