Home

Awesome

colcon-coveragepy-result

PyPI GitHub Action Status

A colcon extension for collecting coverage.py results. It provides the coveragepy-result command.

Install

The corresponding package names are:

Refer to the colcon installation instructions for more information.

Usage

  1. Build packages with coverage, e.g. using a colcon mixin for coverage (installation of the mixin is separate from this extension)
    $ colcon build --mixin coverage-pytest
    
  2. Test packages with coverage, again using a mixin
    $ colcon test --mixin coverage-pytest
    
  3. Collect coverage results using the coveragepy-result command provided by this extension
    $ colcon coveragepy-result
    
  4. Open HTML report, which by default is under coveragepy/htmlcov/

Options

Contributing

See: