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.2.tar.gz (8.9 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.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_results-0.4.2.tar.gz
Algorithm Hash digest
SHA256 c9ce30a5c8e1e3785959a55e24769c1288f81ed2e6a52825591bd6f20af32947
MD5 dbdbee30252ebef0205abfe24c0b2355
BLAKE2b-256 6bcb310d687868d94a2e86529d96328cbd358bd94f5e255b4ef11ec00a1e847c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_results-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7bda762742fc2f841583d4fc429bddec35a8ad3a46000659e190c9a065abc1a3
MD5 585e9c4a32c2ffa1f7de4841f6cfc2a5
BLAKE2b-256 6fbec944e06c9387636bc4caa17e488850c6447efbed0d56279460b4bc735217

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