diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2017-10-19 11:11:20 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2017-10-19 11:11:20 -0500 |
commit | 734f98178261e2ba42df3ff6c39c8950e9eb01ed (patch) | |
tree | 9678bf5400e40c0f21ba53d5a2d36487b995b5b1 /ci | |
parent | 4dcf12a340f82fb01453ef3b7aca6df756bdaa65 (diff) | |
download | rails-734f98178261e2ba42df3ff6c39c8950e9eb01ed.tar.gz rails-734f98178261e2ba42df3ff6c39c8950e9eb01ed.tar.bz2 rails-734f98178261e2ba42df3ff6c39c8950e9eb01ed.zip |
Count assertions instead of tests in report
Diffstat (limited to 'ci')
-rw-r--r-- | ci/qunit-selenium-runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/qunit-selenium-runner.rb b/ci/qunit-selenium-runner.rb index 1d18d666b0..9b856e2a41 100644 --- a/ci/qunit-selenium-runner.rb +++ b/ci/qunit-selenium-runner.rb @@ -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) |