mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:39:28 +08:00
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:
@ -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'
|
||||
|
Reference in New Issue
Block a user