Skip to main content

Coverage-sbfl

Coverage collection in SBFL format using coverage.py.

This is a plugin for the coverage.py tool. The plugin provides an alternative coverage report in TCM format compatible with Spectrum-Based Fault Localization (SBFL) techniques such as FLITSR.

The plugin requires only the coverage.py coverage output (either the binary .coverage file or the json coverage report), as well as the output of the testing framework used (e.g. pytest), which is usually included in the output of coverage.py itself.

Installation

To install the coverage-sbfl plugin, simply use:

pip install coverage-sbfl

Usage

The coverage-sbfl plugin is a report generation plugin for the coverage.py tool. So it replaces the normal call to any of coverage.py's report formatters.

An example usage of the plugin using coverage.py is as follows:

coverage -m pytest > coverage_output.txt
coverage-sbfl -e coverage_output.txt

which will create the coverage.tcm file compatible with SBFL tools.

NOTE: We strongly suggest you use the settings provided in the template_coveragerc.txt file when using this plugin. In particular, this plugin relies on coverage.py's dynamic contexts in order to collect per-test case coverage, so the setting:

dynamic_context = test_function

is necessary in order to use this plugin.

Metadata

Release files for coverage-sbfl 0.0.2

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-sbfl 0.0.2
File Size Uploaded
coverage_sbfl-0.0.2.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coverage-sbfl 0.0.2
File Interpreter ABI Platform
coverage_sbfl-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / coverage_sbfl-0.0.2.tar.gz

Download URL coverage_sbfl-0.0.2.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
53a3786e349abbd7672579471f312f16cad064d1e62bc562c4b4007cdfc72473
BLAKE2b-256 checksum
How to use checksums
d3a4702719eddd1f2a3bc16ac88a7c4396ca9e0a7c4b96532d3dde4123377236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.

Transparency log

Release files / coverage_sbfl-0.0.2-py3-none-any.whl

Download URL coverage_sbfl-0.0.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
439aee9831092ff0b4b119ffd31c5df25fb8ca2fc597e548cc639966a05cff6c
BLAKE2b-256 checksum
How to use checksums
baf49478b5f6f3004c00c08f2ddd9bb52c3e059e3f3163140b50af93bee5e3d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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