From 734f98178261e2ba42df3ff6c39c8950e9eb01ed Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Thu, 19 Oct 2017 11:11:20 -0500 Subject: [PATCH] Count assertions instead of tests in report --- ci/qunit-selenium-runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/qunit-selenium-runner.rb b/ci/qunit-selenium-runner.rb index 1d18d666b07..9b856e2a41a 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)