Run A Single Test Via A Command Line When Tests Are Located Within A Sibling Folder April 21, 2024 Post a Comment I have a folder structure: app/ | |-src/ | | | |-Code.py | |-tests/ | |-__init__.py |-test_Code.py I run my tests by issuing a command: app$ python3 -m unittest discover AnSolution 1: This should work. python -m unittest -v tests.test_Code.TestCase1.test_Code1 CopyAssuming that src is a also a module Share Post a Comment for "Run A Single Test Via A Command Line When Tests Are Located Within A Sibling Folder"
Post a Comment for "Run A Single Test Via A Command Line When Tests Are Located Within A Sibling Folder"