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.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

colcon_coveragepy_result-0.0.3-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file colcon-coveragepy-result-0.0.3.tar.gz.

File metadata

  • Download URL: colcon-coveragepy-result-0.0.3.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for colcon-coveragepy-result-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0d820e553e0fc7df21592261d5ea4c6dbbb5cfe815717df4c082fddf815e3bef
MD5 4740d7c1c46bef4201566205d6baf524
BLAKE2b-256 dcc154a164be36f6cde98864142846f3e9d9e19e0a2d3cc924f0c26edf5d121b

See more details on using hashes here.

Provenance

File details

Details for the file colcon_coveragepy_result-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: colcon_coveragepy_result-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for colcon_coveragepy_result-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eec7fef8691c9dd5d1262b0161fd3e55f3944d0cdfee0474ded030d03551e221
MD5 e5689dbd5181b3c863d5010ee84f3127
BLAKE2b-256 bdc75c6747963c2021e4a73d6651f0e49681ca7c44ec7a98c6e83a6f198d5026

See more details on using hashes here.

Provenance

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