jeads/datazilla — pull request #18 by carljm (2012-05-17 21:43:15+00:00)
Title: Add test runner script, with coverage measurement

This pull request makes it possible to run `./test.sh` from the repo root to run all tests in the repo. It discovers tests according to [these rules](http://pytest.org/latest/goodpractises.html#test-discovery), except I added a config file to modify those rules so it looks in files named `*Test.py` to match our non-standard module-naming conventions.

(In order for this to work, you have to have `pytest` installed, which you can do by running `pip install -r requirements.txt`).

The test-running script also outputs HTML coverage data to the `htmlcov/` directory in the repo (which is git-ignored). Since we're working on VMs, you can't just view this report locally, so you'll have to add an nginx config stanza for it - I added this in the sample nginx config in `webapp/conf/etc/nginx/conf.d/datazilla.conf`, just so you have a convenient place to copy it from (although that nginx config will likely go away soon).