emailnetwork icon indicating copy to clipboard operation
emailnetwork copied to clipboard

nosetests on Windows potentially not working properly

Open vccalvin33 opened this issue 2 years ago • 1 comments

image

vccalvin33 avatar Jan 18 '22 12:01 vccalvin33

I used Pytest and made an identical result. Use pip install pytest-cov to install the Pytest package, and from the root folder run pytest --cov.

---------- coverage: platform win32, python 3.8.12-final-0 -----------
Name                       Stmts   Miss  Cover
----------------------------------------------
emailnetwork\__init__.py       2      0   100%
emailnetwork\emails.py        39      1    97%
emailnetwork\extract.py       94     24    74%
emailnetwork\graph.py        120     82    32%
emailnetwork\header.py        39     30    23%
emailnetwork\network.py       13      7    46%
emailnetwork\summary.py       74     33    55%
emailnetwork\utils.py         30      9    70%
emailnetwork\version.py        1      0   100%
----------------------------------------------
TOTAL                        412    186    55%

A little disadvantage is that the tests are showing up in the coverage report, but we can get rid of it by creating a .coveragerc in root and add 3 lines of code:

[run]
omit = 
    */test*

staneaurelius avatar Jan 18 '22 12:01 staneaurelius