Message297073
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". |
|
Date |
User |
Action |
Args |
2017-06-27 20:01:56 | zach.ware | set | recipients:
+ zach.ware, docs@python, alex.75 |
2017-06-27 20:01:56 | zach.ware | set | messageid: <1498593716.59.0.655641204189.issue30743@psf.upfronthosting.co.za> |
2017-06-27 20:01:56 | zach.ware | link | issue30743 messages |
2017-06-27 20:01:56 | zach.ware | create | |
|