简体   繁体   中英

How to run unittest with distutils in python3.3

Is there a way to run unittests for a module with setup.py using distutils? python3.3 distutils doesn't seem to support the 'test_suite' option:

In setup.py I have the following code: test_suite = 'test.run_tests',

No distutils version supports test integration: it's a setuptools add-on.

unittest in 2.7 and 3.2 gained support for auto-discovering tests, so even if you can't run python setup.py test there's still python -m unittest .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM