Sometimes I introduce an error in my testing code that doesn’t get detected because there is an Error importing modules. For example a typing unitest instead of unitttest. What happens then is that the modules do not get loaded and 0 tests are run but no error is reported by run-tests.py
I have modified tryton_test.py to print the exception ImportError on the method modules_suite method.
It is useful for me and saves me sometime to correct some errors on my tests. But I doubt it is a correct solution. I am not sure if there are legitimate reasons if ImportErrors occur nothing should be done.
When I introduce those kind of errors that cause an ImportError 0 tests are run and no error are reported.
I use run-tests.py -m module_name to run the tests.