DarkTrick
DarkTrick

Reputation: 3467

How to run globally installed coverage on a package inside a virtual enviroment?

I'd like to run a coverage check with the following configuration:

(Inside the venv) When I run coverage run -m pytest I get the error No module named 'pytest'.

How to reproduce

pipx install coverage

python -m venv venv
source ./venv/bin/activate
pip install pytest
coverage run -m pytest

Here are some other outputs (inside the venv)

Upvotes: 0

Views: 16

Answers (0)

Related Questions