New submission from Alessandro Piccione: 1. execute "python -m unittest" 2. Result: 0 test found 3. Change file name from "aaaTest.py" to "test_aaa.py" 4. execute "python -m unittest" 3. Result: Ran 1 tests in 000.0s
Module file MUST be named using the prefiux "test_". The page "https://docs.python.org/3/library/unittest.html" does not mention this MANDATORY rule. I went to this conclusion because I readed the documentation without find any point about the naming convention of modules and than looking for this specific rule searching "test_" and "test_ " without any result. Regards, Alessandro ---------- assignee: docs@python components: Documentation messages: 296740 nosy: alex.75, docs@python priority: normal severity: normal status: open title: unittest discover does not mention module file must be named with "test_" prefix versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30743> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com