Easily spot regressions in your tests.
Pytest plugin for writing non-regression tests.
pip install pytest-results
First, return the value where you want to check the regression:
def test_function():
return {"hello": "world"}
All results are stored in JSON files at the root of your project in the
__pytest_results__
folder.
In case of regression, to open the interactive comparison, add the --ide
parameter
to Pytest with the name of your IDE:
pytest --ide vscode
At present, the IDEs supported are cursor
, pycharm
and vscode
.