One way to do this is to use it in the
src property of a multi-task allowing it to fall-back to the wildcard definition that picks up all test files. Here's an example:
Like this running
grunt casper --test path/to/tests/js will run the single test file. And running
grunt casper will run casper on all your test files.