Permalink
Browse files

Tests: Add widget option

Allows running qunit tests for a single widget

Closes gh-1254
  • Loading branch information...
petersendidit committed May 25, 2014
1 parent 203b23a commit 9a93a06fbd61013f1e62cea054c92e11dfa561f1
Showing with 3 additions and 3 deletions.
  1. +3 −3 Gruntfile.js
View
@@ -75,7 +75,8 @@ var
"dist/jquery-ui.js",
"dist/jquery-ui.min.js"
]
};
},
component = grunt.option( "component" ) || "**";
function mapMinFile( file ) {
return "dist/" + file.replace( /\.js$/, ".min.js" ).replace( /ui\//, "minified/" );
@@ -172,8 +173,7 @@ grunt.initConfig({
})
},
qunit: {
files: expandFiles( "tests/unit/**/*.html" ).filter(function( file ) {
// TODO except for all|index|test, try to include more as we go
files: expandFiles( "tests/unit/" + component + "/*.html" ).filter(function( file ) {
return !( /(all|index|test)\.html$/ ).test( file );
}),
options: {

0 comments on commit 9a93a06

Please sign in to comment.