3 ms·
Starting in 2.7, the unittest module actually has the ability to discover tests so you can just do: python -m unittest discover The docs are here: http://doc
by khill 15y ago
Starting in 2.7, the unittest module actually has the ability to discover tests so you can just do:
python -m unittest discover
The docs are here:
http://docs.python.org/library/unittest.html#test-discovery http://docs.python.org/library/unittest.html#test-discovery
I've actually been using both unittest and pytest for a while - I like pytest better but they are both nice tools.
http://doc.pytest.org/en/latest/ http://doc.pytest.org/en/latest/
I found Tarek Ziade's book useful when learning how to best set up and execute unit tests as part of my python projects.