An example of a small prototype of command line testing using CasperJS is at https://github.com/mcamiano/friendlyghost .
It mainly uses shell scripts to port CasperJS as a runner, providing test suite organization, test output logs, helpers, fakes, and even fixtures.
Passing it as an example only, not connecting - I really use Codeception with PhantomJS through Selenium2 as the main tool. By comparison, FriendlyGhost is not very sophisticated and, of course, not fast for many tests, but Casper CoffeeScript is a cleaner and more extensible language to work than Codeception modules, and a small shell can be good enough for diagnostic purposes.
source share