noorbuchi / pytest-pinpoint

:mag: A Pytest plugin that runs SBFL algorithms to locate potential faults given test suite status and coverage information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:mag: A Pytest plugin that runs SBFL algorithms to locate potential faults given test suite status and coverage information

License:GNU General Public License v3.0


Languages

Language:Python 100.0%