Class: MutationTester::Reporters::BatchJsonReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/mutation_tester/reporters/batch_json_reporter.rb

Constant Summary collapse

SCHEMA_VERSION =
1

Instance Method Summary collapse

Constructor Details

#initialize(result, config, passed:) ⇒ BatchJsonReporter

Returns a new instance of BatchJsonReporter.



6
7
8
9
10
# File 'lib/mutation_tester/reporters/batch_json_reporter.rb', line 6

def initialize(result, config, passed:)
  @result = result
  @config = config
  @passed = passed
end

Instance Method Details

#renderObject



12
13
14
# File 'lib/mutation_tester/reporters/batch_json_reporter.rb', line 12

def render
  JSON.pretty_generate(envelope)
end