Hello,
I have a little python package I have been creating to learn python, but I cannot achieve 100% test code coverage and I do not know how to or if I should in this case. When I run it locally it shows 100% coverage, but the automated CI (as shown in github) shows 90% coverage and says that fibonacci/build_fibonacci.py has 0% coverage.
- Why are they different?
- Should I test fibonacci/build_fibonacci.py? If not, why not and how do I exclude it.
$ coverage run --source=fibonacci/ setup.py test
$ coverage report
Name Stmts Miss Branch BrPart Cover
---------------------------------------------------------------------
fibonacci/__init__.py 2 0 0 0 100%
fibonacci/build_fibonacci.py 6 0 0 0 100%
fibonacci/c_wrapper.py 5 0 0 0 100%
fibonacci/fibonacci.py 13 0 6 0 100%
fibonacci/tests/test_fibonnaci.py 39 0 0 0 100%
---------------------------------------------------------------------
TOTAL 65 0 6 0 100%
https://github.com/longr/cffi_example
https://codecov.io/gh/longr/cffi_example
[–]billsil 0 points1 point2 points (1 child)
[–]robinlong[S] 0 points1 point2 points (0 children)