- Download v1.5 (or greater, v1.8 and v1.9 have been verified) of Phantom JS and make sure the phantomjs binary is on your PATH.
(For OS X: homebrew has a forumla for the static build: brew install phantomjs)
- Run ./server start to fire up the JsTestDriver server and Phantom JS.
(Run ./server stop to kill the daemonized JSTD server and PhantomJS processes.)
The runtests.sh script will run all js unit tests against JsTestDriver, using Phantom JS as the captured browser. Any additional args passed to this script will be passed on to JsTestDriver .
mkdir examples/helloworld/reports ./server.sh start ./runtests.sh --config examples/helloworld/jsTestDriver.conf --tests all --testOutput examples/helloworld/reports ./server.sh stop
JsTestDriver will only output jUnit XML with the --testOutput arg if the path provided exists. It won't create the output directory for you.