Sample setup for headless Jasmine testing
It's actually the same sample code that ships with Jasmine, tweaked to demonstrate the use of the improved console reporter.
The meat of it is in SpecRunner.js, where the console reporter is wired up.
With this setup you can also see test results through the HTML interface, by accessing the SpecRunner.html file in your browser.
Running the suite
Just call phantomjs, passing the path to run-jasmine.js and SpecRunner.html as arguments
phantomjs spec/run-jasmine.js spec/SpecRunner.html