preventing python coverage from including virtual environment site packages

Thanks to tknickman I figured it out: Use either coverage run –source <path to project dir> test.py or create a configuration file .coveragerc which resides in the directory you run coverage from, with the following content: [run] source = <path to project dir> This provides you do not have your virtual environment installed under the … Read more