Skip to main content
This reference documents Qlty CLI v0.656.0.
Transform coverage data to the Qlty format The qlty coverage transform command converts code coverage reports from their original formats into a generic format named qlty. It supports various input formats, including lcov, cobertura, jacoco, and clover. In addition to converting reports to the qlty format, this command can add or remove prefixes from file paths and print the transformed report. It is typically used in conjunction with the coverage publish command as an intermediate step to upload the transformed report to Qlty Cloud for analysis, particularly in sophisticated CI setups that implement Parallel Testing or other advanced configurations.

Arguments

The path to the coverage report, which may include its format (e.g., ‘lcov:./coverage/lcov.info’)
Transform the coverage report without writing the output file
The format of the coverage report to transform. If not specified, the format will be inferred from the file extension or contents[possible values: simplecov, clover, cobertura, coverprofile, dotcover, lcov, jacoco, qlty, xccov-json]
The prefix to add to file paths in coverage payloads. This helps to match the file paths with the project’s directory structure
The prefix to remove from absolute paths in coverage payloads to make them relative to the project root. This is usually the directory in which the tests were run. Defaults to the root of the git repository
The output file name for the transformed coverage report. If not specified, the report will be saved to ‘coverage.jsonl’
Suppresses most of the standard output messages

See Also