Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

test file whitelist, filter out irrelavent/temporary files. fix #40 #56

Merged
merged 1 commit into from
Feb 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/config.es6
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ var Config = {
directory: `${working_dir}/contracts`
},
tests: {
directory: `${working_dir}/test`
directory: `${working_dir}/test`,
filter: /.*\.(js|es|es6|jsx|coffee)$/
},
build: {
directory: path.join(working_dir, "build"),
Expand Down
4 changes: 3 additions & 1 deletion lib/test.es6
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ var Test = {
}

for (var file of files.sort()) {
mocha.addFile(file);
if (file.match(config.tests.filter)) {
mocha.addFile(file);
}
}

runMocha();
Expand Down