This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zach.ware
Recipients alex.75, docs@python, zach.ware
Date 2017-06-27.20:01:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498593716.59.0.655641204189.issue30743@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2017-06-27 20:01:56zach.waresetrecipients: + zach.ware, docs@python, alex.75
2017-06-27 20:01:56zach.waresetmessageid: <1498593716.59.0.655641204189.issue30743@psf.upfronthosting.co.za>
2017-06-27 20:01:56zach.warelinkissue30743 messages
2017-06-27 20:01:56zach.warecreate