Skip to content

Commit 1b24bcf

Browse files
authored
Merge pull request webpack#3255 from Kovensky/log-filtered-test-cases
Log filtered test cases as skipped
2 parents bbd6eb7 + 2db4143 commit 1b24bcf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/TestCases.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,11 @@ 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() {
122+
it('filtered')
123+
});
124+
return false;
122125
}
123126
return true;
124127
}).forEach(function(testName) {

0 commit comments

Comments
 (0)