Skip to main content

Easily spot regressions in your tests.

Project description

pytest-results

CI PyPI - Version PyPI - Downloads Ruff

Easily spot regressions in your tests.

Pytest plugin for writing non-regression tests.

Installation

⚠️ Requires Python 3.12 or higher

pip install pytest-results

Quick start

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.

Resources

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_results-0.4.5.post0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_results-0.4.5.post0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file pytest_results-0.4.5.post0.tar.gz.

File metadata

File hashes

Hashes for pytest_results-0.4.5.post0.tar.gz
Algorithm Hash digest
SHA256 45eac5ddd1621ffb59d8c5d1f3eb93f9e53e65c4b4b4233eb35dba5cee8c80b9
MD5 38fdab9825d886822323e4be7e137568
BLAKE2b-256 bd625f6319f9f855aa6f000596f1d12b04674b6a56a411943836d8568b24338c

See more details on using hashes here.

File details

Details for the file pytest_results-0.4.5.post0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_results-0.4.5.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 7145a28b9f5f0d8ee0ad584032350a7f19e248abaf4dee26824aa45962f570e8
MD5 ddf3d0bac6dc9385f1f177595409cee4
BLAKE2b-256 1004b9476ad4aa976190ed88fce3c96ac3be15218ef1228b79d3adce70dce7fd

See more details on using hashes here.

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