Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Report more detail in watchr notification.

  • Loading branch information...
commit 8c295727388a8ff3392d21301226b3726e7694b4 1 parent 174180f
@seven1m seven1m authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 .watchr
View
4 .watchr
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.