mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
DEV: Add support for running plugin qunit in parallel (#18291)
For example, to run in three concurrent browsers and assemble the results: ``` QUNIT_PARALLEL=3 bin/rake "plugin:qunit[discourse-chat]" ```
This commit is contained in:
parent
496f910f03
commit
ce21205d39
@ -108,7 +108,10 @@ task "qunit:test", [:timeout, :qunit_path] do |_, args|
|
||||
test_page = "#{qunit_path}?#{query}&testem=1"
|
||||
cmd += ["yarn", "testem", "ci", "-f", "testem.js", "-t", test_page]
|
||||
else
|
||||
cmd += ["yarn", "ember", "test", "--query", query]
|
||||
cmd += ["yarn", "ember", "exam", "--query", query]
|
||||
if parallel = ENV["QUNIT_PARALLEL"]
|
||||
cmd += ["--load-balance", "--parallel", parallel]
|
||||
end
|
||||
end
|
||||
|
||||
system(*cmd, chdir: "#{Rails.root}/app/assets/javascripts/discourse")
|
||||
|
Loading…
Reference in New Issue
Block a user