minimal example of using phantomjs with qunit
$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.
brew install phantomjs
git clone git://gist.github.com/1305062.git phantomjs-qunit && cd phantomjs-qunit
$ phantomjs run-qunit.js file://
pwd/test.html