Skip to main content

colcon extension for collecting coverage.py results

Project description

colcon-coveragepy-result

PyPI GitHub Action Status

A colcon extension for collecting coverage.py results.

Usage

  1. Build packages with coverage, e.g. using a colcon mixin for coverage
    $ colcon build --mixin coverage-pytest
    
  2. Test packages with coverage, again using a mixin
    $ colcon test --mixin coverage-pytest
    
  3. Collect coverage results
    $ colcon coveragepy-result
    
  4. Open HTML report, which by default is under coveragepy/htmlcov/

Options

  • Print coverage reports for each package and a combined coverage report of all packages
    $ colcon coveragepy-result --verbose
    
  • Provide additional arguments for reports generation, e.g. to show lines without coverage
    $ colcon coveragepy-result --coverage-report-args -m
    
  • Provide additional arguments for HTML report generation, e.g. to skip files with no code
    $ colcon coveragepy-result --coverage-html-args --skip-empty
    
  • For more options
    $ colcon coveragepy-result --help
    

Contributing

See:

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

colcon-coveragepy-result-0.0.8.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

colcon_coveragepy_result-0.0.8-py3-none-any.whl (11.4 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