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

Uploaded Source

Built Distribution

colcon_coveragepy_result-0.0.5-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colcon-coveragepy-result-0.0.5.tar.gz
  • Upload date:
  • Size: 6.9 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.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for colcon-coveragepy-result-0.0.5.tar.gz
Algorithm Hash digest
SHA256 8cff6638aca2f10bc716f1b8ffe0a28896644f0eed00dcbb8a230b7c21b73f87
MD5 19d588f057810407f05f00e37d659da4
BLAKE2b-256 4aaa0eea691a144e6ed49bbc24a9ea181f26b8cad6ce241671cc668ecdaa52f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: colcon_coveragepy_result-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for colcon_coveragepy_result-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 490913c40606d02ce7d4b7f9094fad800832bef7e04f18bfec618de74a7117d6
MD5 83e8d76ba595d5680580f18cfc7dd161
BLAKE2b-256 91501ee280b55905e0b55414b40b442f27357d2e9f0abd5a2f70d6837ff5ef84

See more details on using hashes here.

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