Class: BuildLogParser::Parser
- Inherits:
-
Object
- Object
- BuildLogParser::Parser
- Includes:
- CoverageMatcher, DurationMatcher, PHPUnitMatcher, RspecMatcher, TestUnitMatcher
- Defined in:
- lib/build_log_parser/parser.rb
Constant Summary
Constants included from PHPUnitMatcher
BuildLogParser::PHPUnitMatcher::PHPUNIT_PATTERN, BuildLogParser::PHPUnitMatcher::PHPUNIT_PATTERN_ERROR
Constants included from TestUnitMatcher
TestUnitMatcher::TEST_UNIT_PATTERN
Constants included from RspecMatcher
Constants included from CoverageMatcher
Constants included from DurationMatcher
DurationMatcher::DURATION_PATTERNS
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
- #coverage ⇒ Object
- #duration ⇒ Object
-
#initialize(body) ⇒ Parser
constructor
A new instance of Parser.
- #tests ⇒ Object
Methods included from PHPUnitMatcher
Methods included from TestUnitMatcher
Methods included from RspecMatcher
Methods included from CoverageMatcher
Methods included from DurationMatcher
Constructor Details
#initialize(body) ⇒ Parser
Returns a new instance of Parser.
17 18 19 |
# File 'lib/build_log_parser/parser.rb', line 17 def initialize(body) @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
15 16 17 |
# File 'lib/build_log_parser/parser.rb', line 15 def body @body end |
Instance Method Details
#coverage ⇒ Object
31 32 33 |
# File 'lib/build_log_parser/parser.rb', line 31 def coverage fetch_coverage(body) end |
#duration ⇒ Object
21 22 23 |
# File 'lib/build_log_parser/parser.rb', line 21 def duration fetch_duration(body) end |
#tests ⇒ Object
25 26 27 28 29 |
# File 'lib/build_log_parser/parser.rb', line 25 def tests fetch_rspec_stats(body) || fetch_test_unit_stats(body) || fetch_phpunit_stats(body) end |