Skip to content

Commit

Permalink
Adding an autostart option
Browse files Browse the repository at this point in the history
  • Loading branch information
sglanzer-deprecated committed May 24, 2015
1 parent 54ed85d commit 91d66fb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ MIT

## Release History

* 0.5.2

QUnit users:
blanket-options now includes an autostart option (default true) to control the value of QUnit.config.autostart after the code coverage instrumentation is complete

* 0.5.0

Thanks to monumental effort from @jschilli the project now supports reporters and headless test runs. Additionally, unit tests are now in place with continuous integration and the code base is much cleaner. Amazing work Jeff!
Expand Down
3 changes: 2 additions & 1 deletion blueprints/ember-cli-blanket/files/tests/blanket-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ var options = {
enableCoverage: true,
cliOptions: {
reporters: ['json']
}
},
autostart: true
};
if (typeof exports === 'undefined') {
blanket.options(options);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-blanket",
"version": "0.5.1",
"version": "0.5.2",
"description": "Blanket code coverage for ember-cli",
"main": "index.js",
"directories": {
Expand Down
4 changes: 0 additions & 4 deletions vendor/blanket-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ 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;
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function cliFinish() {
blanket.onTestsDone = cliFinish;

if (typeof(QUnit) === 'object') {
QUnit.config.autostart = window._$blanket_qunit.autostart;
QUnit.config.autostart = blanket.options('autostart');
}
else if (typeof(mocha) === 'object') {

Expand Down

0 comments on commit 91d66fb

Please sign in to comment.