Permalink
Browse files

Count assertions instead of tests in report

  • Loading branch information...
guilleiguaran committed Oct 19, 2017
1 parent 4dcf12a commit 734f98178261e2ba42df3ff6c39c8950e9eb01ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 ci/qunit-selenium-runner.rb
@@ -9,5 +9,5 @@
result = QUnit::Selenium::TestRunner.new(driver).open(ARGV[0], timeout: 60)
driver.quit
puts "Time: #{result.duration} seconds, Total: #{result.tests[:total]}, Passed: #{result.tests[:passed]}, Failed: #{result.tests[:failed]}"
puts "Time: #{result.duration} seconds, Total: #{result.assertions[:total]}, Passed: #{result.assertions[:passed]}, Failed: #{result.assertions[:failed]}"
exit(result.tests[:failed] > 0 ? 1 : 0)

0 comments on commit 734f981

Please sign in to comment.