Class: Mutant::Runner

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/mutant/runner.rb,
lib/mutant/runner/collector.rb

Overview

Runner baseclass

Defined Under Namespace

Classes: Collector

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ undefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize object



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/mutant/runner.rb', line 12

def initialize(env)
  super

  @collector   = Collector.new(env)
  @mutex       = Mutex.new
  @mutations   = env.mutations.dup

  config.integration.setup

  config.reporter.start(env)

  run

  @result = @collector.result.update(done: true)

  config.reporter.report(result)
end

Instance Attribute Details

#resultResult::Env (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return result

Returns:



36
37
38
# File 'lib/mutant/runner.rb', line 36

def result
  @result
end