For this example
- install phantomjs
- install twisted
- make an empty directory
- download qunit.js and qunit.css into that directory
- download https://github.com/ariya/phantomjs/blob/1.2/examples/run-qunit.js into that directory
- add index.html and tests.js from below to that directory
- run
twistd web --path=. --port=8080 && phantomjs run-qunit.js http://localhost:8080 && kill `cat twistd.pid`