Class: SpecTracker::TestReportParser::BaseParser
- Inherits:
-
Object
- Object
- SpecTracker::TestReportParser::BaseParser
- Defined in:
- lib/spec_tracker/test_report_parser/base_parser.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#parse(path) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/spec_tracker/test_report_parser/base_parser.rb', line 4 def parse(path) test_results = [] if report_path(path).directory? report_path(path).each_entry do |entry| results = parse_single(report_path(path).join(entry.basename)) test_results.concat(results) unless results.empty? end else results = parse_single(report_path(path)) test_results.concat(results) unless results.empty? end test_results end |