From 734f98178261e2ba42df3ff6c39c8950e9eb01ed Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Thu, 19 Oct 2017 11:11:20 -0500 Subject: Count assertions instead of tests in report --- ci/qunit-selenium-runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ci') 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) -- cgit v1.2.3