Class: Testify::TestResult

Inherits:
Object
  • Object
show all
Defined in:
lib/test_result.rb

Overview

A TestResult object represents the results of running a single test, whatever that means in the context of your framework.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ TestResult

Returns a new instance of TestResult.


9
10
11
12
13
14
# File 'lib/test_result.rb', line 9

def initialize (options = {})
  @status   = options[:status]
  @message  = options[:message]
  @file     = options[:file]
  @line     = options[:line]
end

Instance Attribute Details

#fileObject

Returns the value of attribute file


7
8
9
# File 'lib/test_result.rb', line 7

def file
  @file
end

#lineObject

Returns the value of attribute line


7
8
9
# File 'lib/test_result.rb', line 7

def line
  @line
end

#messageObject

Returns the value of attribute message


7
8
9
# File 'lib/test_result.rb', line 7

def message
  @message
end

#statusObject

Returns the value of attribute status


7
8
9
# File 'lib/test_result.rb', line 7

def status
  @status
end