Class: Mutant::Test::Report

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat, Anima::Update
Defined in:
lib/mutant/test.rb

Overview

Object to report test status

Instance Method Summary collapse

Instance Method Details

#failed?Boolean

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.

Test if test failed

Returns:

  • (Boolean)


22
23
24
# File 'lib/mutant/test.rb', line 22

def failed?
  !success?
end

#marshal_dumpArray

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 marshallable data

NOTE:

The test is intentionally NOT part of the mashalled data.
In rspec the example group cannot deterministically being marshalled, because
they reference a crazy mix of IO objects, global objects etc.

Returns:

  • (Array)


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

def marshal_dump
  [@output, @success]
end

#marshal_load(array) ⇒ 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.

Load marshalled data

Parameters:

  • arry (Array)

Returns:

  • (undefined)


50
51
52
# File 'lib/mutant/test.rb', line 50

def marshal_load(array)
  @output, @success = array
end