Class: TestResultFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/perfecto-reporting/test/result/TestResultFactory.rb

Overview

TestResultFactory

Generates a new test result instance.

Class Method Summary collapse

Class Method Details

.createFailure(reason, error) ⇒ Object

Creates a failed test execution result

reason - string representation of the reason for the test failure error - the exception caused the failure

return - instance denoting a failed test execution



22
23
24
# File 'lib/perfecto-reporting/test/result/TestResultFactory.rb', line 22

def self.createFailure reason, error
  return TestResultFailure.new(reason, error)
end

.createSuccessObject

create a successful test execution result

return - instance denoting a successful test execution



12
13
14
# File 'lib/perfecto-reporting/test/result/TestResultFactory.rb', line 12

def self.createSuccess
  return TestResultSuccess.new
end