Skip to content

Commit cdc64f5

Browse files
committed
Only report coverage for package being tested
1 parent c012914 commit cdc64f5

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

pytest-cov.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
[pytest]
22
addopts = -rs -v
3-
4-
# We need this to make pytest "touch" every python file
5-
# in order to include them into the coverage report.
6-
python_files = *.py

scripts/coverage.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
set -e
44

55
function cov {
6-
pytest ${1} \
6+
pytest \
77
-c pytest-cov.ini \
88
--ignore-glob=*/setup.py \
9-
--cov opentelemetry-api \
10-
--cov opentelemetry-sdk \
11-
--cov ext \
12-
--cov examples \
9+
--cov ${1} \
1310
--cov-append \
1411
--cov-branch \
15-
--cov-report=
12+
--cov-report='' \
13+
${1}
1614
}
1715

1816

0 commit comments

Comments
 (0)