Skip to content

Commit

Permalink
Skip tests that are ignored.
Browse files Browse the repository at this point in the history
This allows us to use the following to easily check if any skipped tests
are now passing:

```
/tests/index.html?enableoptionalfeatures&filter=SKIPPED%20IN%20GLIMMER&forceskip
```
  • Loading branch information
rwjblue authored and toddjordan committed Sep 9, 2016
1 parent 512fa86 commit 7be41f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/ember-glimmer/tests/utils/abstract-test-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ export function moduleFor(description, TestClass, ...mixins) {

function generateTest(name) {
if (modulePackagePrefix && packageName !== modulePackagePrefix) {
return;
}

if (name.indexOf('@test ') === 0) {
QUnit.skip(`SKIPPED IN ${packageName.toUpperCase()} ${name.slice(5)}`, assert => context[name](assert));
} else if (name.indexOf('@test ') === 0) {
QUnit.test(name.slice(5), assert => context[name](assert));
} else if (name.indexOf('@skip ') === 0) {
QUnit.skip(name.slice(5), assert => context[name](assert));
Expand Down

0 comments on commit 7be41f7

Please sign in to comment.