Collect coverage from python projects compatible with Spectrum-Based Fault Localization (SBFL)!
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coverage_sbfl-0.0.2.tar.gz.
File metadata
- Download URL: coverage_sbfl-0.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53a3786e349abbd7672579471f312f16cad064d1e62bc562c4b4007cdfc72473
|
|
| MD5 |
e4d7aa40f28e67d11ff64b03c9c7929d
|
|
| BLAKE2b-256 |
d3a4702719eddd1f2a3bc16ac88a7c4396ca9e0a7c4b96532d3dde4123377236
|
Provenance
The following attestation bundles were made for coverage_sbfl-0.0.2.tar.gz:
Publisher:
python-publish.yml on DCallaz/coverage-sbfl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coverage_sbfl-0.0.2.tar.gz -
Subject digest:
53a3786e349abbd7672579471f312f16cad064d1e62bc562c4b4007cdfc72473 - Sigstore transparency entry: 1079059599
- Sigstore integration time:
-
Permalink:
DCallaz/coverage-sbfl@c10d48e623805d78787f18aaf8e1c26b64d3df2b -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/DCallaz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c10d48e623805d78787f18aaf8e1c26b64d3df2b -
Trigger Event:
release
-
Statement type:
File details
Details for the file coverage_sbfl-0.0.2-py3-none-any.whl.
File metadata
- Download URL: coverage_sbfl-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
439aee9831092ff0b4b119ffd31c5df25fb8ca2fc597e548cc639966a05cff6c
|
|
| MD5 |
87b1e173e5ff89980b0671c8f3a0035f
|
|
| BLAKE2b-256 |
baf49478b5f6f3004c00c08f2ddd9bb52c3e059e3f3163140b50af93bee5e3d3
|
Provenance
The following attestation bundles were made for coverage_sbfl-0.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on DCallaz/coverage-sbfl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coverage_sbfl-0.0.2-py3-none-any.whl -
Subject digest:
439aee9831092ff0b4b119ffd31c5df25fb8ca2fc597e548cc639966a05cff6c - Sigstore transparency entry: 1079059605
- Sigstore integration time:
-
Permalink:
DCallaz/coverage-sbfl@c10d48e623805d78787f18aaf8e1c26b64d3df2b -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/DCallaz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c10d48e623805d78787f18aaf8e1c26b64d3df2b -
Trigger Event:
release
-
Statement type: