DEV: makes hidepassed default when running qunit (#7558)

Mostly useful when not running headless, but I endup doing it a lot when debugging, one less thing to check.
This commit is contained in:
Joffrey JAFFEUX 2019-05-16 14:37:01 +02:00 committed by GitHub
parent 0e677daaee
commit 9ce9d72e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
test_path = "#{Rails.root}/test" test_path = "#{Rails.root}/test"
qunit_path = args[:qunit_path] || "/qunit" qunit_path = args[:qunit_path] || "/qunit"
cmd = "node #{test_path}/run-qunit.js http://localhost:#{port}#{qunit_path}" cmd = "node #{test_path}/run-qunit.js http://localhost:#{port}#{qunit_path}"
options = { seed: (ENV["QUNIT_SEED"] || Random.new.seed) } options = { seed: (ENV["QUNIT_SEED"] || Random.new.seed), hidepassed: 1 }
%w{module filter qunit_skip_core qunit_single_plugin}.each do |arg| %w{module filter qunit_skip_core qunit_single_plugin}.each do |arg|
options[arg] = ENV[arg.upcase] if ENV[arg.upcase].present? options[arg] = ENV[arg.upcase] if ENV[arg.upcase].present?