Class: Mutineer::Kills

Inherits:
Data
  • Object
show all
Defined in:
lib/mutineer/result.rb

Overview

One mutant's row of the kill matrix (--matrix): which tests killed it and which ran against it. A test is a [file, name, id] triple: the project-relative file that defines it, its name (CalculatorTest#test_add, or an RSpec example's full description), and an id that tells apart tests sharing a file and name (an RSpec example id; the name again for Minitest). File and id identify a test; the name is display data that a mutant can change. Both lists are sorted and unique, and ran includes the killers.

complete is true when the child ran its whole suite and reported it cleanly (see Isolation.finish). It is false when the child timed out, errored or exited the process early, when the recorder never armed, when its lines arrived out of order, when Minitest returned after an Interrupt with tests unseen, when a test had a database connection or lock failure, or when the row does not agree with the verdict.

Instance Attribute Summary collapse

Instance Attribute Details

#complete ⇒ Object (readonly)

Returns the value of attribute complete

Returns:

  • (Object) —

    the current value of complete



172
173
174
# File 'lib/mutineer/result.rb', line 172

def complete
  @complete
end

#killed_by ⇒ Object (readonly)

Returns the value of attribute killed_by

Returns:

  • (Object) —

    the current value of killed_by



172
173
174
# File 'lib/mutineer/result.rb', line 172

def killed_by
  @killed_by
end

#ran ⇒ Object (readonly)

Returns the value of attribute ran

Returns:

  • (Object) —

    the current value of ran



172
173
174
# File 'lib/mutineer/result.rb', line 172

def ran
  @ran
end