Skip to content

Commit

Permalink
Merge pull request #82 from mohayonao/tools
Browse files Browse the repository at this point in the history
tools++
  • Loading branch information
mohayonao committed Jun 17, 2014
2 parents 675d97f + 3c2a925 commit 3b29307
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/grunt-tasks/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = function(grunt) {
tstFiles.sort(sorter.byFilePath).forEach(function(file) {
if (/_test\.js$/.test(file)) {
mocha.addFile(file);
} else if (!/^src\/sc\/test\//.test(file)) {
} else {
matchFn[path.resolve(file)] = true;
}
});
Expand All @@ -64,7 +64,6 @@ module.exports = function(grunt) {
installer(global.sc);
}
};
require("../test-utils");

if (cover) {
coverageVar = "$$cov_" + Date.now() + "$$";
Expand All @@ -78,6 +77,8 @@ module.exports = function(grunt) {
reporter = "spec";
}

require("../test-utils");

done = this.async();
mocha.reporter(reporter).run(function(failure) {
var collector;
Expand Down

0 comments on commit 3b29307

Please sign in to comment.