BlueBrain / BluePyEfe

BluePyEfe: Blue Brain Python E-feature extraction
https://bluepyefe.readthedocs.io/en/latest/
Other
14 stars 13 forks source link

BPE2: The coverage results are not detected when it's called from tox. #94

Closed anilbey closed 1 year ago

anilbey commented 2 years ago

The coverage hit/miss results are not detected when it's called from tox.

Every file is shows as %0 hit

py3-functional run-test: commands[2] | coverage report --show-missing
Name                            Stmts   Miss  Cover   Missing
-------------------------------------------------------------
bluepyefe/__init__.py               3      3     0%   18-21
bluepyefe/auto_targets.py          37     37     0%   23-182
bluepyefe/cell.py                  84     84     0%   21-224
bluepyefe/ecode/DeHyperPol.py      79     79     0%   23-191
bluepyefe/ecode/HyperDePol.py      79     79     0%   23-192
bluepyefe/ecode/SpikeRec.py        93     93     0%   23-215
bluepyefe/ecode/__init__.py        10     10     0%   18-30
bluepyefe/ecode/negCheops.py       94     94     0%   23-219
bluepyefe/ecode/posCheops.py       94     94     0%   23-224
bluepyefe/ecode/ramp.py            63     63     0%   23-164
bluepyefe/ecode/sAHP.py            86     86     0%   23-211
bluepyefe/ecode/sineSpec.py        68     68     0%   23-169
bluepyefe/ecode/step.py            89     89     0%   23-208
bluepyefe/ecode/tools.py            8      8     0%   23-38
bluepyefe/extract.py              241    241     0%   2-996
bluepyefe/igorpy/__init__.py       50     50     0%   21-140
bluepyefe/plotting.py             119    119     0%   22-322
bluepyefe/protocol.py              64     64     0%   22-201
bluepyefe/reader.py               122    122     0%   22-335
bluepyefe/recording.py            126    126     0%   21-255
bluepyefe/rheobase.py              57     57     0%   21-178
bluepyefe/target.py                54     54     0%   21-177
bluepyefe/tools.py                 57     57     0%   21-131
-------------------------------------------------------------
TOTAL                            1777   1777     0%

Originally posted by @anilbey in https://github.com/BlueBrain/BluePyEfe/issues/93#issuecomment-1238317612

When the pytest command below is called on the terminal without tox, the coverage hit and miss values are detected.

pytest --cov-report=xml --cov=bluepyefe -vx tests

anilbey commented 2 years ago

On the BPE2 branch, the coverage.xml file always has 0 hits when we call tox -e py3-functional.

                        <line number="12" hits="0"/>
                        <line number="13" hits="0"/>
                        <line number="14" hits="0"/>
                        <line number="15" hits="0"/>
                        <line number="16" hits="0"/>
                        <line number="19" hits="0"/>
                        <line number="25" hits="0"/>
                        <line number="26" hits="0"/>
                        <line number="27" hits="0"/>
                        <line number="28" hits="0"/>
                        <line number="29" hits="0"/>
                        <line number="32" hits="0"/>