mozilla/webpay — pull request #320 by muffinresearch (2013-10-16 18:45:39+00:00)
Title: Start of ui testing WiP

Here's the work in progress testing scaffolding with supervisord to control running both webpay and solitude.

For this to work you'll need:

* Both webpay and solitude setup with venvs called 'webpay' and 'solitude' and the branches both living same directory. e.g. code/webpay and code/solitude
* Update your venv with the test requirements in requirements/tests.txt
* Casperjs v1.1 installed
* Phantomjs installed

Once you have all that it should be a case of simply running:

`make test-ui` from the webpay root.

This should carry out the following steps:

* Clean out the captures directory
* Ensures you have webpay/tmp
* Start up supervisor which runs webpay and solitude on pre-defined ports.
* Wait for a few seconds to allow the services to be running
* run the tests in casper

If something fails there should be logs for everything (both the django runserver instances as well as supervisord)

There will probably be wrinkles with this so if you're trying this out you're like an intrepid explorer! Make sure you wear your snow shoes and get roped up before you start.