Skip to main content

This package is a collection of command line tools for coverage to produce verbose reports and/or stats measurements of your test coverage.

Available tools include:

  • coverage-annotate - prints the source code and prefixes each line with + or - depending on wheather it was executed during testing or not;

  • coverage-combine - combines several .coverage data files into one;

  • coverage-diff - compares the annotated sources from two coverage data files to highlight the difference in test coverage between them;

  • coverage-report - report on arbitrary file(s);

  • pickle2json - convert .coverage files from pickle to JSON format; Needs coverage version 4.0 at least;

Installation

Use pip to install from PyPI:

pip install coverage-tools

Changelog

Version 0.0.4

  • New tool coverage-report;

  • New tool pickle2json;

Version 0.0.3

  • New options for coverage-annotate

    • -N - show line numbers

    • -i - list of files to include in the report

    • -e - list of files to exclude from the report

–include and –exclude support shell globs. If none is specified all files in the coverage data file are shown. The include list is evaluated first, then the exclude list is evaluated.

  • New options for coverage-diff

    • -N - show line numbers

    • -i - list of files to include in the report

    • -e - list of files to exclude from the report

The same limitations apply to all options.

  • New tool coverage-combine which supports shell globs.

Version 0.0.2

  • First release on PyPI

Contributing

Source code and issue tracker are at https://github.com/atodorov/coverage-tools

Release files for coverage-tools 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coverage-tools 0.0.4
File Size Uploaded
coverage-tools-0.0.4.tar.gz 5.8 kB Details

Release files / coverage-tools-0.0.4.tar.gz

Download URL coverage-tools-0.0.4.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c68c2d0030597a61377bc864e2fbc4ae1c64c4d99c5f86291adbcb2bcb7d60c3
BLAKE2b-256 checksum
How to use checksums
afcc178502f3a198bdb8c2684d293ab5852f2e7c618f613847d895e8701f8cf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page