Metadata-Version: 2.5
Name: badgerp_cobertura
Version: 0.1.0
Summary: Render line coverage from a Cobertura XML report
Project-URL: Documentation, https://philocalyst.tngl.io/Badger/plugins.html
Project-URL: Repository, https://tangled.org/largo.tngl.sh/plugin-cobertura
Project-URL: Issues, https://tangled.org/largo.tngl.sh/plugin-cobertura/issues
Author: Philocalyst
License-Expression: BlueOak-1.0.0
License-File: LICENSE.md
Keywords: badge,badge-plugin,badger
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# badgerp_cobertura

Renders line coverage from a Cobertura XML report. Cobertura is produced by
coverage tools across Python, Java, JavaScript, and other ecosystems, so it is
the portable counterpart to Badger's LCOV plugin.

```python
badge(
    producer=cobertura(report="coverage.xml"),
)
```

The badge uses Cobertura's root `line-rate`, or the compatible
`lines-covered`/`lines-valid` counters. Coverage is green at 90% or higher,
olive at 80%, yellow at 70%, and red below 70%. Invalid or unrelated XML is
an error instead of a misleading badge.

Empty line counters show neutral `no data`. Namespaces are supported. Negative,
impossible or contradictory counters and DTD/entity declarations are rejected.
Reports describe their recorded run, not necessarily the current checkout.
