Class: Sapphire::Testing::TestResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/Testing/TestResult.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, item, message, stack, execution_time) ⇒ TestResult

Returns a new instance of TestResult.



12
13
14
15
16
17
18
# File 'lib/sapphire/Testing/TestResult.rb', line 12

def initialize(type, item, message, stack, execution_time)
  @item = item
  @execution_time = execution_time
  @messages = message
  @stack = stack
  @type = type
end

Instance Attribute Details

#execution_timeObject (readonly)

Returns the value of attribute execution_time.



5
6
7
# File 'lib/sapphire/Testing/TestResult.rb', line 5

def execution_time
  @execution_time
end

#itemObject (readonly)

Returns the value of attribute item.



7
8
9
# File 'lib/sapphire/Testing/TestResult.rb', line 7

def item
  @item
end

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/sapphire/Testing/TestResult.rb', line 6

def message
  @message
end

#messagesObject (readonly)

Returns the value of attribute messages.



10
11
12
# File 'lib/sapphire/Testing/TestResult.rb', line 10

def messages
  @messages
end

#stackObject (readonly)

Returns the value of attribute stack.



9
10
11
# File 'lib/sapphire/Testing/TestResult.rb', line 9

def stack
  @stack
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/sapphire/Testing/TestResult.rb', line 8

def type
  @type
end