[docs] [issue30743] unittest discover does not mention module file must be named with "test_" prefix

Alessandro Piccione report at bugs.python.org
Fri Jun 23 17:57:36 EDT 2017


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 at python
components: Documentation
messages: 296740
nosy: alex.75, docs at 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 <report at bugs.python.org>
<http://bugs.python.org/issue30743>
_______________________________________


More information about the docs mailing list