Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Spike project for trying out Zombie.js with Jasmine.
JavaScript Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
application
spec/js
vendor
.gitignore
README.md
jsTestDriver.conf
run-acceptance-specs.js
run-acceptance-specs.sh
run-all-specs.sh
run-unit-specs.sh
specs.watchr
start-application.sh
start-jstd-server.sh
stop-application.sh

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.