diff --git a/vendor/blanket-require.js b/vendor/blanket-require.js index 4c43310..3c11189 100644 --- a/vendor/blanket-require.js +++ b/vendor/blanket-require.js @@ -42,6 +42,10 @@ var blanketLoader = function(moduleName) { // Defer the start of the test run until a call to QUnit.start() this // allows the modules to be loaded/instrumented prior to the test run if (typeof(QUnit) === 'object') { + var autostart = QUnit.config.autostart; + window._$blanket_qunit = { + autostart: autostart + }; QUnit.config.autostart = false; } diff --git a/vendor/start.js b/vendor/start.js index 86f0af5..6daf5d1 100644 --- a/vendor/start.js +++ b/vendor/start.js @@ -1,4 +1,4 @@ -/*global blanket, mocha, moduleLoaderFinish, $ */ +/*global QUnit, blanket, mocha, moduleLoaderFinish, $ */ function sendCoverage() { $.ajax({ @@ -22,11 +22,7 @@ function cliFinish() { blanket.onTestsDone = cliFinish; if (typeof(QUnit) === 'object') { - // I'm not sure which ember-cli release introduced this behavior, - // but QUnit.start() is called by the ember-cli framework as of - // ember-cli@0.1.15 and causes a conflict if QUnit.start() is - // called again here - // QUnit.start(); + QUnit.config.autostart = window._$blanket_qunit.autostart; } else if (typeof(mocha) === 'object') {