Difference between revisions of "Trove/unit-testing"
< Trove
(→Setup) |
m (→Running Tests) |
||
Line 14: | Line 14: | ||
= Running Tests = | = Running Tests = | ||
− | To run all tests and PEP8, run tox, like so: | + | To run all tests and PEP8, run tox within the trove repository directory, like so: |
$ tox | $ tox |
Revision as of 23:07, 28 January 2015
Contents
Setup
First need to do a "pip install tox"
Ubuntu
- sudo apt-get install libmysqlclient-dev
- sudo apt-get install python-dev
- sudo apt-get install libxml2-dev libxslt1-dev
Mac OSX
- brew install mysql
- brew install python-dev
Running Tests
To run all tests and PEP8, run tox within the trove repository directory, like so:
$ tox
To run just the tests for Python 2.7, run:
$ tox -epy27
To run just PEP8, run:
$ tox -epep8
To generate a coverage report,run:
$ tox -ecover