Skip to content

Commit 9a5c3cf

Browse files
author
Diogo Franco (Kovensky)
committed
Log filtered test cases as skipped
1 parent 9085e1e commit 9a5c3cf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/TestCases.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ describe("TestCases", function() {
117117
category.tests.filter(function(test) {
118118
var testDirectory = path.join(casesPath, category.name, test);
119119
var filterPath = path.join(testDirectory, "test.filter.js");
120-
if(fs.existsSync(filterPath)) {
121-
return require(filterPath)(config);
120+
if(fs.existsSync(filterPath) && !require(filterPath)(config)) {
121+
describe.skip(test, function() { it('filtered')});
122+
return false;
122123
}
123124
return true;
124125
}).forEach(function(testName) {

0 commit comments

Comments
 (0)