How to run JS tests using various frameworks on different platforms
In order to make the JS.Class testing experience as good as possible, I'm trying out some other frameworks to see how they work on different platforms.
JS.Class currently supports:
Here's how to run the examples I have so far:
git clone git://github.com/jcoglan/js-test-examples.git
cd js-test-examples
git submodule --init --recursive
npm install buster
# Browser tests
node node_modules/buster/bin/buster-server
open http://0.0.0.0:1111/
node node_modules/buster/bin/buster-test -c buster/config.js -e browser
# Node tests
node node_modules/buster/bin/buster-test -c buster/config.js -e node
cd vendor
wget http://download.dojotoolkit.org/release-1.5.0/dojo-release-1.5.0-src.tar.gz
tar zxvf dojo-release-1.5.0-src.tar.gz
cd ../
python -m SimpleHTTPServer
open http://0.0.0.0:8000/dojo/browser.html
cd vendor/jasmine-node
npm install
cd ../../
open jasmine/browser.html
python -m SimpleHTTPServer & open http://localhost:8000/jasmine/browser.html
./vendor/jasmine-node/bin/jasmine-node jasmine/
phantomjs jasmine/phantom.js
ruby jasmine/harmony.rb
jasmine-headless-webkit
rake jasmine:ci
cd vendor/js.class
jake
cd ../..
open js.class/browser.html
python -m SimpleHTTPServer & open http://localhost:8000/js.class/browser.html
rhino js.class/console.js
node js.class/console.js
# etc
phantomjs js.class/phantom.js
ruby js.class/harmony.rb
cd vendor/mocha
npm install
cd ../..
open mocha/browser.js
node vendor/mocha/bin/mocha mocha
cd vendor/nodeunit
make
cd ../..
open nodeunit/browser.html
node vendor/nodeunit/bin/nodeunit nodeunit/module_spec.js
open qunit/browser.html
rhino qunit/console.js
# doesn't work on node
open screw-unit/browser.html
cd vendor/vows
npm install
cd ../..
node vows/module_spec.js