diff options
author | David Petersen <public@petersendidit.com> | 2014-05-25 16:27:24 -0500 |
---|---|---|
committer | David Petersen <public@petersendidit.com> | 2014-05-26 10:58:08 -0500 |
commit | 9a93a06fbd61013f1e62cea054c92e11dfa561f1 (patch) | |
tree | 628ea1cb859a461cdc36ca6e952a1d65c3bbb43a | |
parent | 203b23a87c68312382aed45c0e67df4461c4ebfc (diff) | |
download | jquery-ui-9a93a06fbd61013f1e62cea054c92e11dfa561f1.tar.gz jquery-ui-9a93a06fbd61013f1e62cea054c92e11dfa561f1.zip |
Tests: Add widget option
Allows running qunit tests for a single widget
Closes gh-1254
-rw-r--r-- | Gruntfile.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 384b52ff3..386b2a238 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: { |