Open 1oglop1 opened 7 years ago
@1oglop1 it would appear that the code ain't covered at all? What happens if you remove the # pragma: no cover
from the main function?
@icemac
Then the result is:
12 statements 0 run 12 missing 0 excluded
Is there anything I can debug or provide you more input?
Seems to work as expected - you don't test the jans_sample_python_package.__main__
module at all. To do it, run subprocess.check_output([sys.executable, '-mjans_sample_python_package'])
or something similar.
Yey, that fixt the report! Huge thanks!
How about line 3
why """
is reported was missing?
Module ain't imported, so why would it be covered?
OS: OSx 10.12.6 coverage (4.4.1) pytest-cov (2.5.1)
I'm learning how to use coverage and pytest-cov and it reports very strange things. Missing coverage on docstring example:
Coverage report: https://1oglop1.github.io/jan_cov/src_jans_sample_python_package___main___py.html
Code: https://github.com/1oglop1/covjan/tree/cov2
Can someone please tell me what's wrong or what to read in order to learn more how does this all work together?