grunt task src filtering from cli
<p>I have a grunt task that runs all of my nodejs server side test files.</p>

<pre><code>grunt.registerTask('serverTest', ['env:test', 'mongoose', 'mochaTest']); 
</code></pre>

<p>While developing tests I would like to only run the test I'm currently working on. My task is setup to run a list of all test assets in the code base:</p>

<pre><code>mochaTest: {
        src: testAssets.tests.server,
        options: {
            reporter: 'spec'
        }
    },
</code></pre>

<p>I would like to specify a filter parameter at the cli to only select a specific file from <code>testAssets.tests.server</code> which is a big list of tests since it's defined as <code>modules/*/tests/server/**/*.js</code> and returns every test in the code base.</p>

<p>For example if I entered the following at the command line:</p>

<pre><code>grunt serverTest:*fileUnderTest.js
</code></pre>

<p>Grunt would filter the <code>testAssets.tests.server</code> and only execute the files that match <code>*fileUnderTest.js</code></p>

<p>I've read through the documentation and seen a lot of examples but can't figure out how to do this without creating a separate target and specifying the file name in the grunt file.</p>