Class: CIRunner::TestFailure
- Inherits:
-
Object
- Object
- CIRunner::TestFailure
- Includes:
- DRbUndumped
- Defined in:
- lib/ci_runner/test_failure.rb
Overview
A container object to gather test failures as we parse the CI log output.
Instance Attribute Summary collapse
-
#klass ⇒ String
readonly
The name of the class that included the failing test.
-
#path ⇒ String
readonly
The file location where this
klass
lives. -
#test_name ⇒ String
readonly
The name of the test that failed.
Instance Method Summary collapse
-
#initialize(klass, test_name, path) ⇒ TestFailure
constructor
A new instance of TestFailure.
Constructor Details
#initialize(klass, test_name, path) ⇒ TestFailure
Returns a new instance of TestFailure.
30 31 32 33 34 |
# File 'lib/ci_runner/test_failure.rb', line 30 def initialize(klass, test_name, path) @klass = klass @test_name = test_name @path = absolute_path(Pathname(path)) end |
Instance Attribute Details
#klass ⇒ String (readonly)
Returns The name of the class that included the failing test.
16 17 18 |
# File 'lib/ci_runner/test_failure.rb', line 16 def klass @klass end |
#path ⇒ String (readonly)
Returns The file location where this klass
lives.
25 26 27 |
# File 'lib/ci_runner/test_failure.rb', line 25 def path @path end |
#test_name ⇒ String (readonly)
Returns The name of the test that failed.
22 23 24 |
# File 'lib/ci_runner/test_failure.rb', line 22 def test_name @test_name end |