Skip to main content

Easily spot regressions in your tests.

Project description

pytest-results

CI PyPI Ruff

Easily spot regressions in your tests.

The package lets you write 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.1.tar.gz (8.7 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.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest_results-0.4.1.tar.gz.

File metadata

  • Download URL: pytest_results-0.4.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for pytest_results-0.4.1.tar.gz
Algorithm Hash digest
SHA256 388d0ed7937e8b40cb14dfd141a75f2b58b84d66b2512a5ea0f64ee2167d5c30
MD5 9a4ba48a9eec95afaae1141dba5ef7d6
BLAKE2b-256 9452e14548b5ae572c9b8416b9be5c9c8687a4d37c519c0fc062e5a2f0de74bd

See more details on using hashes here.

File details

Details for the file pytest_results-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_results-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d13175a53e7f259c713e600409bbc6bfe3836e32574e61bdc5e1832b82e4403
MD5 5bfa1cc6bb8a202657586efc604d72af
BLAKE2b-256 f3e9a0405b4a472da6ca1dbc45099ef49514e8485a82f17242d83a80ac21d3c9

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