Zachary Ware added the comment: This all seems to be covered in https://docs.python.org/3/library/unittest.html#test-discovery
$ cat aaaTest.py import unittest class TestAAA(unittest.TestCase): def test_something(self): self.assertTrue(True) if __name__ == '__main__': unittest.main() $ python3 -m unittest discover -v -p "*Test.py" test_something (aaaTest.TestAAA) ... ok ---------------------------------------------------------------------- Ran 1 test in 0.000s OK As the `--pattern` documentation says, the default pattern is "test*.py" which does not match "aaaTest.py". ---------- _______________________________________ 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