How to run unittest discover from “python setup.py test”?
I'm trying to figure out how to get python setup.py test to run the equivalent of python -m unittest discover . I don't want to use a run_tests.py script and I don't want to use any external test tools (like nose or py.test ). It's OK if the solution only works on python 2.7. In setup.py , I think I need to add something to the test_suite and/or test_loader fields in config, but I can't seem to find a combination that works correctly: config = { 'name': name, 'version': version, 'url': url, 'test_suite': '???', 'test_loader': '???', } Is this possible using only unittest built into python 2.7?