Class: Cosmos::TestResult

Inherits:
Object show all
Defined in:
lib/cosmos/tools/test_runner/test.rb

Overview

class TestStatus

Constant Summary collapse

@@test_suite =
nil

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestResult

Returns a new instance of TestResult.



60
61
62
63
64
65
66
67
68
69
70
# File 'lib/cosmos/tools/test_runner/test.rb', line 60

def initialize
  @test = nil
  @test_case = nil
  @test_suite = nil
  @test_suite = @@test_suite.clone if @@test_suite
  @output = nil
  @exceptions = nil
  @stopped = false
  @result = :SKIP
  @message = nil
end

Instance Attribute Details

#exceptionsObject

Returns the value of attribute exceptions.



53
54
55
# File 'lib/cosmos/tools/test_runner/test.rb', line 53

def exceptions
  @exceptions
end

#messageObject

Returns the value of attribute message.



56
57
58
# File 'lib/cosmos/tools/test_runner/test.rb', line 56

def message
  @message
end

#outputObject

Returns the value of attribute output.



52
53
54
# File 'lib/cosmos/tools/test_runner/test.rb', line 52

def output
  @output
end

#resultObject

Returns the value of attribute result.



55
56
57
# File 'lib/cosmos/tools/test_runner/test.rb', line 55

def result
  @result
end

#stoppedObject

Returns the value of attribute stopped.



54
55
56
# File 'lib/cosmos/tools/test_runner/test.rb', line 54

def stopped
  @stopped
end

#testObject

Returns the value of attribute test.



49
50
51
# File 'lib/cosmos/tools/test_runner/test.rb', line 49

def test
  @test
end

#test_caseObject

Returns the value of attribute test_case.



50
51
52
# File 'lib/cosmos/tools/test_runner/test.rb', line 50

def test_case
  @test_case
end

#test_suiteObject

Returns the value of attribute test_suite.



51
52
53
# File 'lib/cosmos/tools/test_runner/test.rb', line 51

def test_suite
  @test_suite
end

Class Method Details

.test_suite=(test_suite) ⇒ Object



72
73
74
# File 'lib/cosmos/tools/test_runner/test.rb', line 72

def self.test_suite= (test_suite)
  @@test_suite = test_suite
end