Skip to main content

A pytest plugin which runs SBFL algorithms to detect faults.

Project description

Pytest-PinPoint

PyPI version

A pytest plugin which runs SBFL algorithms to detect faults.

First five algorithms are based on what Spencer Pearson, José Campos, René Just, Gordon Fraser, Rui Abreu, Michael D. Ernst, Deric Pang, Benjamin Keller discribed in Evaluating and improving fault localization.

reference

Pearson, S., Campos, J., Just, R., Fraser, G., Abreu, R., Ernst, M. D., ... & Keller, B. (2017, May). Evaluating and improving fault localization. In 2017 IEEE/ACM 39th International Conference on Software Engineering (ICSE) (pp. 609-620). IEEE.

required installation

pip install git+https://github.com/nedbat/pytest-cov.git@nedbat/contexts

pip install coverage>=5.1

run pytest-pinpoint

General usage, top three ranked results:

python -m pytest --cov=. --cov-context --cov-branch --pinpoint

Show all ranked results:

python -m pytest --cov=. --cov-context --cov-branch --pinpoint --show_all

Show bottom three ranked results:

python -m pytest --cov=. --cov-context --cov-branch --pinpoint --show_last_three

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

pytest-pinpoint-0.2.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

pytest_pinpoint-0.2.1-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

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