Skip to content

Commit

Permalink
Return error code on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Nov 28, 2013
1 parent a2e5afe commit a021487
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/drntest/test-suites-result.rb
Expand Up @@ -28,5 +28,9 @@ def summary
end
status_counts
end

def success?
summary[:failure].zero?
end
end
end
2 changes: 1 addition & 1 deletion lib/drntest/tester.rb
Expand Up @@ -127,7 +127,7 @@ def run(*targets)
puts "==== Summary ===="
p test_suites_result.summary

0 # FIXME
test_suites_result.success?
end

def load_tests(*targets)
Expand Down

0 comments on commit a021487

Please sign in to comment.