You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I submitted a PR this morning for a project of mine and found that it was collecting 0% of lines from our coverage.py Tox job which was, at the time, using PyTest 5.2.3. This was occurring on my local computer (a Mac) and on CircleCI in a Debian based Docker container.
I perused my last builds to find I had previously been using PyTest 5.2.1 and that covered lines were being collected fine using 5.2.1 for that version.
I was able to confirm that collection works on 5.2.1 and 5.2.2 by setting my PyTest version locally (in tox.ini) and running tox -e py36,py37,py38 --recreate and each time.
As far as I can tell, this is not related to any changes in coverage.py since that version has been 4.5.4 between all of the various test runs.
This should be trivial to recreate using the linked repo (if you have Pyenv):
git clone https://github.com/coverahealth/dataspec.git
cd dataspec
pyenv install 3.6.6 3.7.4 3.8.0
pyenv local 3.6.6 3.7.4 3.8.0
python -m venv .venv
source .venv/bin/activate
pip install -rrequirements.txt -rrequirements.dev.txt
sed -i '' 's/pytest==5.2.2/pytest==5.2.3/g' tox.ini # macOS only (?)
# sed 's/pytest==5.2.2/pytest==5.2.3/g' tox.ini
tox -e py36,py37,py38
Each of the test runs should result in something like:
Coverage.py warning: No data was collected. (no-data-collected)
Python Version(s): 3.6, 3.7, 3.8 PyTest Version: 5.2.3 Operating System: Mac OS Mojave (10.14.6) and a Debian Stretch-based Docker image running on CircleCI
Results of pip list: (from the Mac OS virtual environment)
I submitted a PR this morning for a project of mine and found that it was collecting 0% of lines from our
coverage.py
Tox job which was, at the time, using PyTest 5.2.3. This was occurring on my local computer (a Mac) and on CircleCI in a Debian based Docker container.I perused my last builds to find I had previously been using PyTest 5.2.1 and that covered lines were being collected fine using 5.2.1 for that version.
I was able to confirm that collection works on 5.2.1 and 5.2.2 by setting my PyTest version locally (in
tox.ini
) and runningtox -e py36,py37,py38 --recreate
and each time.As far as I can tell, this is not related to any changes in
coverage.py
since that version has been 4.5.4 between all of the various test runs.This should be trivial to recreate using the linked repo (if you have Pyenv):
Each of the test runs should result in something like:
Python Version(s): 3.6, 3.7, 3.8
PyTest Version: 5.2.3
Operating System: Mac OS Mojave (10.14.6) and a Debian Stretch-based Docker image running on CircleCI
Results of
pip list
: (from the Mac OS virtual environment)The text was updated successfully, but these errors were encountered: