Setuptools integration
testrepository provides a setuptools commands for ease of integration with setuptools-based workflows:
- testr:
python setup.py testrwill run testr in parallel mode Options that would normally be passed to testr run can be added to the testr-options argument.python setup.py testr --testr-options="--failing"will append--failingto the test run. - testr --coverage:
python setup.py testr --coveragewill run testr in code coverage mode. This assumes the installation of the python coverage module. python testr --coverage --omit=ModuleThatSucks.pywill append --omit=ModuleThatSucks.py to the coverage report command.