coverage-monitor-action icon indicating copy to clipboard operation
coverage-monitor-action copied to clipboard

Don't work with python coverage

Open ndt080 opened this issue 2 years ago • 3 comments

image

ndt080 avatar Mar 23 '23 15:03 ndt080

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

slavcodev avatar Mar 24 '23 11:03 slavcodev

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>
	
	...

ndt080 avatar Mar 24 '23 13:03 ndt080

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.

slavcodev avatar Mar 24 '23 14:03 slavcodev