Commit 2f03b6c7 authored by Sam Saccone's avatar Sam Saccone

All users to run multiple tests at once via CLI

this enables users to do the following

npm run test -- --framework=jquery --framework=backbone --grep 'should trim entered text'
parent 37de4cb4
...@@ -63,7 +63,9 @@ list = list.filter(function (framework) { ...@@ -63,7 +63,9 @@ list = list.filter(function (framework) {
// if a specific framework has been named, just run this one // if a specific framework has been named, just run this one
if (argv.framework) { if (argv.framework) {
list = list.filter(function (framework) { list = list.filter(function (framework) {
return framework.name === argv.framework; return [].concat(argv.framework).some(function (f) {
return f === framework.name;
});
}); });
if (list.length === 0) { if (list.length === 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment