Count assertions instead of tests in report

This commit is contained in:
Guillermo Iguaran 2017-10-19 11:11:20 -05:00
parent 4dcf12a340
commit 734f981782
1 changed files with 1 additions and 1 deletions

View File

@ -9,5 +9,5 @@ driver = ::Selenium::WebDriver.for(:chrome, options: driver_options)
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)