mercredi 19 décembre 2018

TestCase fails with discover -s but running one-by-one shows OK

Have multiple files under unit_tests folder. Running TestCase separately shows tests succeed. If I run them with

python -m unittest discover -s unit_tests/*

raises errors. Looks like test_* methods are running in parallel.

What can be the reason for such behavior that running TestCase-based class shows all tests are fine and running all TestCases together fails.

Aucun commentaire:

Enregistrer un commentaire