From 0c743a591f834a771776bca39f4f44697e572e47 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 22 Sep 2022 10:28:02 +0100 Subject: [PATCH] DEV: Allow `rake qunit` filter to be used alongside parallel option (#18326) Followup to 61f5c8716d2b7cfe229a49b7653c255916ee7f02 --- lib/tasks/qunit.rake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rake index 38a81e92bdb..76781a4cd79 100644 --- a/lib/tasks/qunit.rake +++ b/lib/tasks/qunit.rake @@ -108,13 +108,12 @@ task "qunit:test", [:timeout, :qunit_path, :filter] do |_, args| system("yarn", "ember", "build", chdir: "#{Rails.root}/app/assets/javascripts/discourse") test_page = "#{qunit_path}?#{query}&testem=1" cmd += ["yarn", "testem", "ci", "-f", "testem.js", "-t", test_page] - elsif filter - cmd += ["yarn", "ember", "test", "--query", query, "--filter", filter] else cmd += ["yarn", "ember", "exam", "--query", query] if parallel = ENV["QUNIT_PARALLEL"] cmd += ["--load-balance", "--parallel", parallel] end + cmd += ["--filter", filter] if filter end system(*cmd, chdir: "#{Rails.root}/app/assets/javascripts/discourse")