Skip to content

Commit

Permalink
Ignore hidden files from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sj26 committed May 3, 2021
1 parent 5315140 commit 4914178
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ for (const language in testSuite) {
for (const filePath of testFiles) {
const fileName = path.basename(filePath, path.extname(filePath));

it("– should pass test case '" + fileName + "'", function () {
if (path.extname(filePath) === '.test') {
TestCase.runTestCase(language, filePath, update ? 'update' : insert ? 'insert' : 'none');
} else {
TestCase.runTestsWithHooks(language, require(filePath));
}
});
if (fileName[0] != '.') {
it("– should pass test case '" + fileName + "'", function () {
if (path.extname(filePath) === '.test') {
TestCase.runTestCase(language, filePath, update ? 'update' : insert ? 'insert' : 'none');
} else {
TestCase.runTestsWithHooks(language, require(filePath));
}
});
}
}
});
}(language, testSuite[language]));
Expand Down

0 comments on commit 4914178

Please sign in to comment.