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.6.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.4.6-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_results-0.4.6.tar.gz
Algorithm Hash digest
SHA256 23ebbcf61d9b8571c248cc4f1ebba63c412541c3c5dbebb6e7c1ffe3ce2cc51d
MD5 78e30f863573886fe1d4b15dab95a830
BLAKE2b-256 94a7d04f8d69254ffd1e8d4777f30df693384bac018e36628bc1aa35f6a0189d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_results-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 82c7da63973fa08148250b3e82981afdcb7e046f70b3c56adffbfe52796e203a
MD5 c0c4d8067e64a11751136cd2bd3a98a6
BLAKE2b-256 c6c68402b2640242cf93a436cd5e74c1192e4e22721cc3a749c232eff42ae684

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