Skip to content

Commit

Permalink
Use coverage directly instead of pytest-cov (#1204)
Browse files Browse the repository at this point in the history
* Use coverage directly instead of pytest-cov

* Use coverage's source_pkgs
  • Loading branch information
JayH5 committed Jun 19, 2021
1 parent d917501 commit a839d92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -9,6 +9,7 @@ requests
# Testing
autoflake
black==20.8b1
coverage>=5.3
databases[sqlite]
flake8
isort==5.*
Expand All @@ -18,7 +19,6 @@ types-contextvars
types-PyYAML
types-dataclasses
pytest
pytest-cov
trio

# Documentation
Expand Down
2 changes: 1 addition & 1 deletion scripts/test
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Expand Up @@ -17,9 +17,6 @@ combine_as_imports = True

[tool:pytest]
addopts =
--cov-report=term-missing:skip-covered
--cov=starlette
--cov=tests
-rxXs
--strict-config
--strict-markers
Expand All @@ -32,3 +29,6 @@ filterwarnings=
ignore: Using or importing the ABCs from 'collections' instead of from 'collections\.abc' is deprecated.*:DeprecationWarning
ignore: The 'context' alias has been deprecated. Please use 'context_value' instead\.:DeprecationWarning
ignore: The 'variables' alias has been deprecated. Please use 'variable_values' instead\.:DeprecationWarning

[coverage:run]
source_pkgs = starlette, tests

0 comments on commit a839d92

Please sign in to comment.