Skip to content

Commit

Permalink
fix some merges
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Sep 19, 2016
1 parent 847b697 commit 60fec82
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
2 changes: 1 addition & 1 deletion bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ program
.option('--trace-deprecation', 'show stack traces on deprecations')
.option('--use_strict', 'enforce strict mode')
.option('--watch-extensions <ext>,...', 'additional extensions to monitor with --watch', list, [])
.option('--delay', 'wait for async suite definition');
.option('--delay', 'wait for async suite definition')
.option('--generate-seed', 'generate a random seed and exit')
.option('--random <seed>', 'randomize order of tests (with required random seed)');

Expand Down
40 changes: 18 additions & 22 deletions lib/interfaces/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,45 +55,41 @@ module.exports = function(suite) {
};

/**
* Do not randomize.
* Exclusive Suite.
*/
context.suite.inOrder = function(title) {
var suite = common.suite.create({
context.suite.only = function(title) {
if (suites.length > 1) {
suites.shift();
}
return common.suite.only({
title: title,
file: file,
file: file
});
suite.enableRandomize(false);
return suite;
};

context.suite.only.inOrder =
context.suite.inOrder.only = function(title) {
var suite = common.suite.only({
/**
* Do not randomize.
*/
context.suite.inOrder = function(title) {
var suite = common.suite.create({
title: title,
file: file,
file: file
});
suite.enableRandomize(false);
return suite;
};

/**
* Exclusive Suite.
* Do not randomize + exclusive
*/

context.suite.only = function(title) {
if (suites.length > 1) {
suites.shift();
}
return common.suite.only({
context.suite.only.inOrder = context.suite.inOrder.only = function(title) {
var suite = common.suite.only({
title: title,
file: file
});
suite.enableRandomize(false);
return suite;
};
context.suite.only.inOrder = context.suite.inOrder.only
= function(title, fn) {
var suite = context.suite.inOrder(title, fn);
mocha.grep(suite.fullTitle());
};

/**
* Describe a specification or test-case
Expand Down

0 comments on commit 60fec82

Please sign in to comment.