gem/oq-hazardlib — pull request #222 by larsbutler (2014-08-15 16:45:30+00:00)
Title: Add tox.ini config for easy test running

`tox` is currently the "blessed" way of executing tests. The nice thing about it is that you can add multiple test environments for different python versions (2.6, 2.7, 3.1, 3.2, 3.3, etc.). You can even add configuration for running pep8 and pyflakes.

To run it, just `pip install tox` once, then run `tox`. It will handle everything from there. I find this to be a really convenient way to execute tests. =)

NOTE: Numpy (and probably scipy) need to be installed outside of the tox virtualenv. See the note in `tox.ini`.