How to Fix Python Nose: Coverage not available: unable to import coverage module
Have you tried pip install coverage? The coverage plugin depends on separate coverage module, which is not a nose’s dependency, so needs to be installed manually.
Have you tried pip install coverage? The coverage plugin depends on separate coverage module, which is not a nose’s dependency, so needs to be installed manually.
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