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
29
30
# File 'lib/mutant/runner.rb', line 12

def initialize(env)
  super

  @collector = Collector.new(env)
  @mutex     = Mutex.new
  @mutations = env.mutations.dup
  @index     = 0
  @continue  = true

  config.integration.setup

  reporter.start(env)

  run

  @result = @collector.result

  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:



38
39
40
# File 'lib/mutant/runner.rb', line 38

def result
  @result
end