lib/minitest-chef-handler.rb in minitest-chef-handler-0.6.0 vs lib/minitest-chef-handler.rb in minitest-chef-handler-0.6.1
- old
+ new
@@ -36,12 +36,12 @@
runner._run(miniunit_options)
else
runner.run(miniunit_options)
end
- if runner.failures.nonzero?
+ if runner.failures.nonzero? || runner.errors.nonzero?
::Chef::Client.when_run_completes_successfully do |run_status|
- raise "MiniTest failed with #{runner.failures} failure(s)"
+ raise "MiniTest failed with #{runner.failures} failure(s) and #{runner.errors} error(s)."
end
end
end
def miniunit_options