Skip to main content

A Coverage.py plugin module for adding test names as contexts

Project description

licence badge pipeline status

Coverage.py Test Context Plugin

A Coverage.py plugin module for adding test names as contexts

Coverage reports from Coverage.py can include line "contexts"; strings that are attached to lines of code that provide some sort of contextual information to a reader.

This package consists of a dynamic context plugin for Coverage.py that adds unit test names as contexts.

Usage

Add the plugins package to your test dependencies, wherever they are: kodo.plugins.cover-test-context

Then add the plugin to your coverage configuration:

pyproject.toml
[tool.coverage.run]
plugins = [
  "kodo.plugins.cover_test_context",
]
setup.cfg, tox.ini
[coverage:run]
plugins =
  kodo.plugins.cover_test_context
.coveragerc
[run]
plugins =
  kodo.plugins.cover_test_context

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kodo.plugins.cover-test-context-0.1.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

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