Module: Guard::PHPUnit2::Formatter
- Defined in:
- lib/guard/phpunit2/formatter.rb
Overview
The Guard::PHPUnit formatter parses the output of phpunit which gets printed by the progress printer.
Class Method Summary collapse
-
.parse_output(text) ⇒ Hash
Parses the tests output.
Class Method Details
.parse_output(text) ⇒ Hash
Parses the tests output.
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/guard/phpunit2/formatter.rb', line 16 def parse_output(text) results = { :tests => look_for_words_in('(?:Tests:|tests)', text), :failures => look_for_words_in('Failures:', text), :errors => look_for_words_in('Errors:', text), :pending => look_for_words_in(['Skipped:', 'Incomplete:'], text), :duration => look_for_duration_in(text) } results.freeze end |