Running unittest with typical test directory structure
The best solution in my opinion is to use the unittest command line interface which will add the directory to the sys.path so you don’t have to (done in the TestLoader class). For example for a directory structure like this: new_project ├── antigravity.py └── test_antigravity.py You can just run: $ cd new_project $ python -m … Read more