forked from test_framework/pytest-bdd
Trying to get coverage report showing the coverage for the source files
This commit is contained in:
parent
aa036b165d
commit
ca2ade7eed
|
@ -30,7 +30,9 @@ jobs:
|
|||
tox -e mypy
|
||||
- name: Test with tox
|
||||
run: |
|
||||
coverage erase
|
||||
tox
|
||||
coverage combine
|
||||
coverage xml
|
||||
- uses: codecov/codecov-action@v3
|
||||
with:
|
||||
|
|
|
@ -72,12 +72,19 @@ show_contexts = true
|
|||
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
include =[
|
||||
"src/pytest_bdd/*",
|
||||
"tests/*",
|
||||
]
|
||||
# `parallel` will cause each tox env to put data into a different file, so that we can combine them later
|
||||
parallel = true
|
||||
source = ["pytest_bdd", "tests"]
|
||||
dynamic_context = "test_function"
|
||||
|
||||
[tool.coverage.paths]
|
||||
# treat these directories as the same when combining
|
||||
# the first item is going to be the canonical dir
|
||||
source = [
|
||||
"src/pytest_bdd",
|
||||
".tox/*/lib/python*/site-packages/pytest_bdd",
|
||||
]
|
||||
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.7"
|
||||
|
|
Loading…
Reference in New Issue