-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reporter: Recognise "Todo" tests from QUnit
This wasn't previously done because versions that support this feature also have a jsreporters-compatible event emitter built-in, but this isn't always used (such as in browserstack-runner). So for completion support it here as well just in case. Ref qunitjs/qunit#1622.
- Loading branch information
Showing
5 changed files
with
340 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* global QUnit */ | ||
|
||
QUnit.test('global pass', function (assert) { | ||
assert.ok(true); | ||
}); | ||
|
||
QUnit.todo('global todo', function (assert) { | ||
assert.ok(false); | ||
}); | ||
|
||
QUnit.module('suite with a todo test'); | ||
QUnit.test('should pass', function (assert) { | ||
assert.ok(true); | ||
}); | ||
QUnit.todo('should todo', function (assert) { | ||
assert.ok(false); | ||
}); | ||
|
||
QUnit.module.todo('todo suite'); | ||
QUnit.test('should todo', function (assert) { | ||
assert.ok(false); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.