Feature in question
I'm looking for documentation on a feature that let's you specify the test cases for a python packages and run them using setup. For example if my setup.py file was:
from setuptools setup
setup(
name='foo',
version='1.0',
py_modules=['foo'],
test_suite='testsuite.test_all.suite',
)
I could then run the package's test cases with the following command:
python setup.py test
Where I have looked
- The PEP Index - there are many PEPs related to packaging I couldn't find mention of the test_suite feature in them.
- Distributing Python Modules documentation mention it either.
What I want to know
- what does test_suite expect? from what I can tell it expects a test suite and you can refer to one directly or a callable that returns one.
- Some projects specify their test suite in their setup.py like Flask some don't like Django. What is the benefit of specifying this.