mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Count assertions instead of tests in report
This commit is contained in:
parent
4dcf12a340
commit
734f981782
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue