Class: Mutant::Runner

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

Overview

Runner baseclass

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

  @stop = false

  config.integration.setup

  progress(env)

  start = Time.now

  @result = Result::Env.new(
    env: env,
    subject_results: visit_collection(env.subjects, &method(:run_subject)),
    runtime: Time.now - start
  ).tap do |report|
    config.reporter.report(report)
  end
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