Permalink
Browse files

Report more detail in watchr notification.

  • Loading branch information...
1 parent 174180f commit 8c295727388a8ff3392d21301226b3726e7694b4 @seven1m seven1m committed Jul 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 .watchr
View
@@ -27,11 +27,11 @@ def run_tests(test, force=false)
result << char
$stdout.write(char)
end
- if result =~/0 failures, 0 errors/
+ if result =~/.*0 failures, 0 errors/
summary = $~.to_s
secs = result.match(/Finished tests in ([\d\.]+s)/)[1]
notify(true, 'Test Success', summary + ' ' + secs)
- elsif result =~ /(\d+) failures?, (\d+) errors?/
+ elsif result =~ /.*(\d+) failures?, (\d+) errors?/
summary = $~.to_s
notify(false, summary)
else

0 comments on commit 8c29572

Please sign in to comment.