How to run unitests of the form test/a.py?
问题 Is it possible to implement a Python project with a file structure like the following?: myproj ├── a.py ├── b.py ├── c.py └── test/ ├── a.py ├── b.py └── c.py Note, in particular, that the test scripts under test/ have the same basenames as the module files they are testing 1 . (In other words, test/a.py contains the unit tests for a.py ; test/b.py contains those for b.py , etc.) The tests under test/ all import unittest and define subclasses of unittest.TestCase . I want to know how to run