Skip to main content

A small CLI tool that automatically fixes paths in Cobertura coverage reports

Project description

coverage-fixpaths

A small CLI tool that automatically fixes paths in Cobertura coverage and JUnit test reports.

Usage

$ coverage-fixpaths --source /path/to/source/files --type coverage coverage.xml
$ coverage-fixpaths --source /path/to/source/files --type junit report.xml

This tries to match the filenames in coverage.xml to the actual files in /path/to/source/files. Any common prefix in the coverage report is replaced with a subdirectory of /path/to/source/files that best matches the file structure in coverage.xml. Files that do not exist in the source directory are removed from the coverage report.

The option --source defaults to . (i.e. the current working directory).

Installation

pip install coverage-fixpaths

or

conda install -c conda-forge coverage-fixpaths

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coverage-fixpaths-1.2.0.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

coverage_fixpaths-1.2.0-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page