Skip to content

Instantly share code, notes, and snippets.

@lightsofapollo
Created April 18, 2012 21:56
Show Gist options
  • Save lightsofapollo/2416883 to your computer and use it in GitHub Desktop.
Save lightsofapollo/2416883 to your computer and use it in GitHub Desktop.
Instructions

Gaia + Test Agent

You will need node & npm for the full demo. You only need a browser to execute the tests but for full reporting/file watching features you need the server.

Tested for node 0.4.9, ~0.6

0

You will need my branch:

git remote add lightsofapollo git://github.com/lightsofapollo/gaia
git fetch
git checkout test-agent

1 (Go to 2 if you don't want node stuff)

run:

DEBUG=1 make
make test-agent-server

2

Make sure this entry is in your hosts file (standard app install)

127.0.0.1 test-agent.gaiamobile.org

This is so you can see the demo app each app should have its own directory for tests this is just an example.

3

Go to test-agent.gaiamobile.org:8080/test/ or test-agent.gaiamobile.org/test/ (if your not using DEBUG=1)

If you installed node

You should now see output in your console when tests run and when you change a test file (anything _test.js) or a lib file (files under js/) it will execute your tests. There is also a growl reporter that is turned off by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment