DEV: Update rake qunit:test and rake plugin:qunit to use testem

For now this is still gated behind a `QUNIT_EMBER_CLI=1` environment variable, but will eventually become the default so that we can remove `run-qunit.js`.
This commit is contained in:
David Taylor
2022-01-11 19:03:08 +00:00
parent ff5a6edb71
commit 5c23c6cdab
2 changed files with 21 additions and 19 deletions

View File

@ -194,7 +194,7 @@ desc 'run plugin qunit tests'
task 'plugin:qunit', [:plugin, :timeout] do |t, args|
args.with_defaults(plugin: "*")
rake = `which rake`.strip
rake = "#{Rails.root}/bin/rake"
cmd = 'LOAD_PLUGINS=1 '
cmd += 'QUNIT_SKIP_CORE=1 '
@ -209,7 +209,8 @@ task 'plugin:qunit', [:plugin, :timeout] do |t, args|
cmd += "#{rake} qunit:test"
cmd += "[#{args[:timeout]}]" if args[:timeout]
sh cmd
system cmd
exit $?.exitstatus
end
desc 'run all migrations of a plugin'