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.5.0.tar.gz (9.5 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.5.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_results-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4d00f97bd7cab385939d5397d371e03c930b1667ba30bbc2d06539b95c79fb65
MD5 2b7a0e890a0a58d6d32e0a27ad735364
BLAKE2b-256 da6641d4c82cf22eacb556dfabba0e04688157c083beda716dacca4084d19c9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_results-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d74ee102805f6847673aa0b2e4b92a9e6f4763eb2d1808c97106d0bd3e00ea91
MD5 a0dbcc306842360f52c9aa74403819c1
BLAKE2b-256 1a03686714f6e2593e9f1e7682dde35b14e8d3182cf123eaee2a5ef191f8c93e

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