Run Python Unittest When Only Testcase Imported
I have inherited a testing directory that looks like this: tests | this_test | __init__.py | this_test.py | that_test | __init__.py | that_test.py Where the
Solution 1:
You can use nosetests
coming from package nose
to discover and run your tests. It is very useful to collect and run all tests, even coming from docstring. Also, you can generate JUnit XML report with it.
pip install nose
# Show all nosetests options
nosetests --helpcd tests
nosetests
Post a Comment for "Run Python Unittest When Only Testcase Imported"