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.1.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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file coverage_sbfl-0.0.1.tar.gz.

File metadata

  • Download URL: coverage_sbfl-0.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for coverage_sbfl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0392397a0274bc0f59bab95d8d536c281f57ac555d0da39817e54a40d204828b
MD5 7b970c41706dba890f678e83cfe75f37
BLAKE2b-256 a4011f649f6887ff977c34e9537e47e09a6358f99265de1dcb6f8936f7af31e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for coverage_sbfl-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: coverage_sbfl-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for coverage_sbfl-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50da82f5cfad8c4bf6943ec9a4139546b49d1fb5534fc913d4ed799373179939
MD5 58f5509dbf048bcac4f055662ae3c97b
BLAKE2b-256 a7b4212ed41db03784c176819217f7ff932dd0878eee26503508ed7df5c3a12e

See more details on using hashes here.

Provenance

The following attestation bundles were made for coverage_sbfl-0.0.1-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