KiBot/experiments/__doc__/coverage_mcpy
Salvador E. Tropea adb9e26750 Added examples of problems using Coverage.py with macros. 2020-06-27 20:38:16 -03:00
..
.coveragerc Added examples of problems using Coverage.py with macros. 2020-06-27 20:38:16 -03:00
Makefile Added examples of problems using Coverage.py with macros. 2020-06-27 20:38:16 -03:00
README.md Added examples of problems using Coverage.py with macros. 2020-06-27 20:38:16 -03:00
application.py Added examples of problems using Coverage.py with macros. 2020-06-27 20:38:16 -03:00
mymacros.py Added examples of problems using Coverage.py with macros. 2020-06-27 20:38:16 -03:00
try_mymacros.py Added examples of problems using Coverage.py with macros. 2020-06-27 20:38:16 -03:00

README.md

Coverage and mcpy

When using the with macro block Coverage.py fails to detect some sentences.

Here is a small example to show it. The mymacros.py contains a macro that was reduced to do nothing.

Running make you can see how 3 lines in application.py are marked as uncovered.

I commented these lines in the code with # <--- Not covered?

The coverage version used is the Debian stable one:

Coverage.py, version 4.5.2 with C extension
Documentation at https://coverage.readthedocs.io

I also tried the code from GitHub (installed on my user:

Coverage.py, version 5.1.1a0 with C extension
Full documentation is at https://coverage.readthedocs.io/en/coverage-5.1.1a0