Replacing pytest-cov by coverage (#1353)
This commit is contained in:
parent
0123bca335
commit
72a1f2c759
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user