aconrad / pycobertura

A code coverage diff tool for Cobertura reports
MIT License
116 stars 39 forks source link

Enable executing as scripts #175

Closed paveltsialnou closed 9 months ago

paveltsialnou commented 9 months ago

Enable executing as scripts (see PEP 338):

$ python -m pycobertura show coverage.xml 
Filename                             Stmts    Miss  Cover    Missing
---------------------------------  -------  ------  -------  ---------
pycobertura/__init__.py                  3       1  66.67%   0
pycobertura/cli.py                      90       0  100.00%
pycobertura/cobertura.py               213       0  100.00%
pycobertura/filesystem.py               87       0  100.00%
pycobertura/reporters.py               222       0  100.00%
pycobertura/utils.py                   130       1  99.23%   40
pycobertura/templates/__init__.py        0       0  100.00%
pycobertura/templates/filters.py        15       0  100.00%
TOTAL                                  760       2  99.74%
aconrad commented 9 months ago

@paveltsialnou tests are failing, can you take a look?

aconrad commented 9 months ago

Thank you @paveltsialnou !

aconrad commented 9 months ago

Released as v3.3.0.