I have a directory tests
that contains many test files. When I test them one by one, they all work and return something like this :
Ran 2 tests in 0.005s
OK (expected failures=1)
But when I run this command : python -m unittest discover
inside the test folder, I get :
Ran 27 tests in 13.950s
FAILED (failures=3, errors=1, expected failures=9)
Why the discover command finds errors? (I am sure that all the tests are working, it's just that the functions I'm testing are a little bit complex and related. Is there any other clean way to launch the tests in one time without getting errors ?