Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Spike project for trying out Zombie.js with Jasmine.

branch: master
README.md

Spike project for trying out Zombie.js with Jasmine

Finally I had a chance to try out this excellent stack!

Setup

First of all, you will need node and npm.

You will need a couple of node.js modules too:

npm install zombie
npm install html5
npm install jasmine-node
npm install express
npm install jade
npm install tav

Specs

To run all specs with watchr after each change to some production/test js file:

watchr specs.watchr

To run the zombie acceptance specs

./run-acceptance-specs.sh

To run the unit specs:

Setup JSTD (once only)

  • Start JSTD server (and leave it open): ./start-jstd-server.sh
  • Open http://localhost:8088/ with browser and click "Capture This Browser" and leave the page open. With firefox you can debug while running the tests with firebug!

and then call

./run-unit-specs.sh

There's also a neat way to run all specs:

./run-all-specs.sh

jQuery.ajax is faked during the unit tests using jasmine-fake-ajax

Launching the application

If you are interested in manually fiddling with the application (not much to see though), you may start the server by calling

cd ./application && node ./foo-twitter-client.js --port=8082

Scripts

./start-application.sh
./stop-application.sh

are using port 8003 and are ment to be used by the specs only. This enables keeping the application running in isolation from the specs.

TODO

Hope you enjoy, don't forget to follow me on twitter!

Something went wrong with that request. Please try again.