diff --git a/odoo/tests/runner.py b/odoo/tests/runner.py index bf2680b90a7..dfb4f167ad7 100644 --- a/odoo/tests/runner.py +++ b/odoo/tests/runner.py @@ -59,7 +59,7 @@ class OdooTestResult(unittest.result.TestResult): def getDescription(self, test): if isinstance(test, unittest.case._SubTest): - return 'Subtest %s' % test._subDescription() + return 'Subtest %s.%s %s' % (test.test_case.__class__.__qualname__, test.test_case._testMethodName, test._subDescription()) if isinstance(test, unittest.TestCase): # since we have the module name in the logger, this will avoid to duplicate module info in log line # we only apply this for TestCase since we can receive error handler or other special case