Class: Mutant::Test::Report

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat, Anima::Update
Defined in:
lib/mutant/test/report.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)


25
26
27
# File 'lib/mutant/test/report.rb', line 25

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)


41
42
43
# File 'lib/mutant/test/report.rb', line 41

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)


53
54
55
# File 'lib/mutant/test/report.rb', line 53

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