Skip to main content

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


Download files

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

Source Distribution

coverage_sbfl-0.0.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coverage_sbfl-0.0.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for coverage_sbfl-0.0.2.tar.gz
Algorithm Hash digest
SHA256 53a3786e349abbd7672579471f312f16cad064d1e62bc562c4b4007cdfc72473
MD5 e4d7aa40f28e67d11ff64b03c9c7929d
BLAKE2b-256 d3a4702719eddd1f2a3bc16ac88a7c4396ca9e0a7c4b96532d3dde4123377236

See more details on using hashes here.

Provenance

The following attestation bundles were made for coverage_sbfl-0.0.2.tar.gz:

Publisher: python-publish.yml on DCallaz/coverage-sbfl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for coverage_sbfl-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 439aee9831092ff0b4b119ffd31c5df25fb8ca2fc597e548cc639966a05cff6c
MD5 87b1e173e5ff89980b0671c8f3a0035f
BLAKE2b-256 baf49478b5f6f3004c00c08f2ddd9bb52c3e059e3f3163140b50af93bee5e3d3

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page