Module: Guard::PHPSpec::Formatter
- Defined in:
- lib/guard/phpspec/formatter.rb
Overview
The Guard::PHPUnit formatter parses the output of phpspec which gets printed by the progress printer.
Class Method Summary (collapse)
-
+ (Hash) parse_output(text)
Parses the tests output.
Class Method Details
+ (Hash) parse_output(text)
Parses the tests output.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/guard/phpspec/formatter.rb', line 16 def parse_output(text) # TODO p text.inspect p __FILE__ + ':' + __LINE__ results = { :tests => look_for_words_in('test', text), :failures => look_for_words_in('failure', text), :errors => look_for_words_in('error', text), :pending => look_for_words_in(['skipped', 'incomplete'], text), :duration => look_for_duration_in(text) } results.freeze end |