Class: ActiveMutator::Reporter::Github
- Inherits:
-
Object
- Object
- ActiveMutator::Reporter::Github
- Defined in:
- lib/active_mutator/reporter/github.rb
Overview
GitHub Actions workflow-command projection (issue #19): one ::warning annotation per surviving mutant, inlined on the PR diff. Everything else mirrors the terminal reporter so CI logs stay readable.
Instance Method Summary collapse
-
#initialize(root:, out: $stdout) ⇒ Github
constructor
A new instance of Github.
- #on_result(result) ⇒ Object
- #summary(results, invalid_count:) ⇒ Object
Constructor Details
Instance Method Details
#on_result(result) ⇒ Object
13 |
# File 'lib/active_mutator/reporter/github.rb', line 13 def on_result(result) = @terminal.on_result(result) |
#summary(results, invalid_count:) ⇒ Object
15 16 17 18 |
# File 'lib/active_mutator/reporter/github.rb', line 15 def summary(results, invalid_count:) @terminal.summary(results, invalid_count: invalid_count) results.select { |r| r.status == :survived }.each { |r| annotate(r) } end |