When I run pytest --cov I get a coverage value of ~60%. The report generated on codecov.io after the code is pushed to github shows 100%. I cannot understand how the two are different, I thought the same command is being ran.
Codecov.io shows
Files • • • Coverage
__init__.py 2 2 0 0 100.00%
c_wrapper.py 5 5 0 0 100.00%
fibonacci.py 13 13 0 0 100.00%
tests/test_fibonnaci.py 39 39 0 0 100.00%
Folder Totals (4 files) 59 59 0 0 100.00%
Project Totals (4 files) 59 59 0 0 100.00%
but running
pytest --cov=fibonacci fibonacci/tests
shows
----------- coverage: platform linux, python 3.7.4-final-0 -----------
Name Stmts Miss Branch BrPart Cover
---------------------------------------------------------------------
fibonacci/__init__.py 2 2 0 0 0%
fibonacci/c_wrapper.py 5 5 0 0 0%
fibonacci/fibonacci.py 13 13 6 0 0%
fibonacci/tests/test_fibonnaci.py 39 0 0 0 100%
---------------------------------------------------------------------
TOTAL 59 20 6 0 60%
Where is the difference coming from, which is correct?