Module: RubynCode::Tools::SpecOutputParser
- Defined in:
- lib/rubyn_code/tools/spec_output_parser.rb
Overview
Parses raw test framework output (RSpec/Minitest) into compact summaries. Passing suites compress to a single line; failures preserve enough context to diagnose the issue without the full verbose output.
Constant Summary collapse
- MAX_FAILURE_LINES =
15- MAX_FAILURES =
10
Class Method Summary collapse
-
.parse(raw) ⇒ String
Parse raw spec output into a compact summary.
Class Method Details
.parse(raw) ⇒ String
Parse raw spec output into a compact summary.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/rubyn_code/tools/spec_output_parser.rb', line 17 def parse(raw) return '(no output)' if raw.nil? || raw.strip.empty? if rspec_output?(raw) parse_rspec(raw) elsif minitest_output?(raw) parse_minitest(raw) else raw end end |