Replacing pytest-cov by coverage (#1353)

This commit is contained in:
cdeler 2020-10-08 15:05:30 +03:00 committed by GitHub
parent 0123bca335
commit 72a1f2c759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -15,6 +15,7 @@ wheel
# Tests & Linting
autoflake
black==20.8b1
coverage==5.3
cryptography
flake8
flake8-bugbear
@ -24,7 +25,6 @@ mypy
pytest==5.*
pytest-asyncio
pytest-trio
pytest-cov
trio
trio-typing
trustme

View File

@ -11,7 +11,7 @@ if [ -z $GITHUB_ACTIONS ]; then
scripts/check
fi
${PREFIX}pytest $@
${PREFIX}coverage run -m pytest
if [ -z $GITHUB_ACTIONS ]; then
scripts/coverage

View File

@ -15,6 +15,10 @@ profile = black
combine_as_imports = True
[tool:pytest]
addopts = --cov=httpx --cov=tests -rxXs
addopts = -rxXs
markers =
copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup
[coverage:run]
omit = venv/*
include = httpx/*, tests/*