storborg / python-packaging

Tutorial on how to structure Python packages
http://www.scotttorborg.com/python-packaging/
438 stars 133 forks source link

Test not detected #44

Closed Mandelag closed 6 years ago

Mandelag commented 6 years ago

Hi! Im following the tutorial and copied the code, but the python setup.py test seems like not detecting the test.

I found the solution here: https://stackoverflow.com/questions/17001010/how-to-run-unittest-discover-from-python-setup-py-test In which the test_suite in the setup.py file is changed to

test_suite="tests",
Mandelag commented 6 years ago

It seems I was mistaken. The test suite run even after I switched back to nose.collector. I just renamed the test file, and then switched it to the original to make it work.