Easily spot regressions in your tests.
Pytest plugin for writing non-regression tests.
pip install pytest-resultsFirst, 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 vscodeAt present, the IDEs supported are cursor, pycharm and vscode.