slavcodev / coverage-monitor-action

A GitHub Action that monitor coverage.
MIT License
46 stars 16 forks source link

Don't work with python coverage #241

Open ndt080 opened 1 year ago

ndt080 commented 1 year ago

image

slavcodev commented 1 year ago

I'm not familiar with python, which format is used there for coverage?

ndt080 commented 1 year ago

coverage.zip my coverage.xml file

<?xml version="1.0" ?>
<coverage version="6.5.0" timestamp="1679583652163" lines-valid="1434" lines-covered="1273" line-rate="0.8877" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
    <!-- Generated by coverage.py: https://coverage.readthedocs.io -->
    <!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
    <sources>
        <source>/src</source>
    </sources>

    ...
slavcodev commented 1 year ago

I see, it is the Cobertura format, it is not supported (yet).

There is another format this tool can generate https://coverage.readthedocs.io/en/7.2.2/cmd.html#json-reporting-coverage-json, the documentation is limited and I can't find the format of json, you can try it.