Class: Mutant::Killer

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

Overview

Mutation killer

Defined Under Namespace

Classes: Report

Instance Method Summary collapse

Instance Method Details

#runKiller::Report

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 killer report

Returns:



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/mutant/killer.rb', line 33

def run
  test_report = Mutant.isolate do
    mutation.insert
    test.run
  end

  Report.new(
    killer:      self,
    test_report: test_report.update(test: test)
  )
end