Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit f0b2d8b

Browse files
authored
Merge pull request #366 from BlueBrain/coverage
Ignore tests directory for coverage
2 parents f6594f3 + 0511dd2 commit f0b2d8b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ x86_64
1010
/.python-version
1111
/cov_reports
1212
.coverage
13+
coverage.xml

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ clean:
6767
rm -rf examples/l5pc/L5PC.py
6868
rm -rf examples/l5pc/x86_64
6969
rm -rf examples/stochkv/x86_64
70-
rm -rf .coverage*
70+
rm -rf .coverage
71+
rm -rf coverage.xml
7172
find . -name "*.pyc" -exec rm -rf {} \;
7273
l5pc_start: install
7374
cd examples/l5pc && \

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ whitelist_externals =
2929
cd
3030
pwd
3131
passenv = https_proxy
32+
coverage_options = --cov-append --cov-report=xml --cov-config=.coveragerc
3233
commands =
3334
make clean
3435

3536
functional: make stochkv_prepare l5pc_prepare sc_prepare meta_prepare
3637
style: pycodestyle --ignore=E402,W503,W504 bluepyopt
3738
syntax: flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
3839

39-
unit: pytest --cov=bluepyopt --cov-append --cov-report=xml bluepyopt/tests -k unit
40-
functional: pytest --cov=bluepyopt --cov-append --cov-report=xml bluepyopt/tests -k-unit
40+
unit: pytest --cov=bluepyopt {[testenv]coverage_options} bluepyopt/tests -k unit
41+
functional: pytest --cov=bluepyopt {[testenv]coverage_options} bluepyopt/tests -k-unit
4142

4243
[testenv:docs]
4344
basepython = python3.6

0 commit comments

Comments
 (0)