Permalink
Browse files

Build: Allow one to specify a specific test file within a suite

(cherry picked from commit 4638bba)

Closes gh-7507
Fixes gh-7506
  • Loading branch information...
gabrielschulhof committed Jun 16, 2014
1 parent 2f45cb9 commit 901c8ff644d415c717e59102c66cd3c4660ba880
Showing with 14 additions and 5 deletions.
  1. +14 −5 Gruntfile.js
View
@@ -908,11 +908,20 @@ module.exports = function( grunt ) {
.forEach( function( suite ) {
testDirs.forEach( function( dir ) {
dir = "tests/" + dir;
patterns = patterns.concat([
dir + "/" + suite + "/index.html",
dir + "/" + suite + "/*/index.html",
dir + "/" + suite + "/**/*-tests.html"
]);
if ( suite.indexOf( "/" ) >= 0 ) {
// If the suite is a path, then append it exactly
patterns.push( dir + "/" + suite );
} else {
// If not, append all patterns we care about
patterns = patterns.concat([
dir + "/" + suite + "/index.html",
dir + "/" + suite + "/*/index.html",
dir + "/" + suite + "/**/*-tests.html"
]);
}
});
});

0 comments on commit 901c8ff

Please sign in to comment.