roman01la/grunt-mocha-casperjs — pull request #1 by kelveden (2014-05-29 10:40:39+00:00)
Title: Allow proper use of mocha .only syntax

Currently grunt-mocha-casperjs doesn't honour the mocha `.only` syntax properly if there are multiple test files. For the file containing the test it works correctly BUT then continues to run all the other test files too.

After some investigation this turned out to be because the plugin is expanding the file src itself and firing off mocha-casperjs for every file. There's no need to do this as mocha-casperjs can do the expanding for itself.

So, I've patched the plugin to pass each src from `this.files` to mocha-casperjs directly. This now means that mocha-casperjs only gets fired once and so is able to honour the `.only` syntax as designed.