Exporting to CI/CD Formats
ucis show code-coverage exports code coverage data in industry-standard
formats that are consumed by CI/CD platforms and code-quality tools.
Format Overview
Format |
Consumed by |
Command flag |
|---|---|---|
LCOV |
genhtml, Codecov, Coveralls, GitLab CI |
|
Cobertura |
Jenkins, GitLab CI, SonarQube, Azure DevOps |
|
JaCoCo |
Maven, Gradle, SonarQube, Bamboo |
|
Clover |
Bamboo, Jenkins (Clover plugin), IntelliJ |
|
Usage
# LCOV
ucis show code-coverage coverage.xml --output-format lcov > coverage.info
# Cobertura
ucis show code-coverage coverage.xml --output-format cobertura > coverage.xml
# JaCoCo
ucis show code-coverage coverage.xml --output-format jacoco > jacoco.xml
# Clover
ucis show code-coverage coverage.xml --output-format clover > clover.xml
The command reads any UCIS database format (XML, SQLite, YAML) via
--input-format.
Choosing a Format
If you use Codecov or Coveralls, use LCOV.
If you use Jenkins with the Cobertura plugin, use Cobertura.
If you use SonarQube, Cobertura and JaCoCo are both supported; check your scanner configuration.
If you use Bamboo, use Clover.
If you are unsure, Cobertura has the broadest tool support.
For complete per-platform pipeline examples see CI/CD Integration.
See CLI Command Reference for the full show code-coverage option reference.