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.2.0.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.2.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_results-0.2.0.tar.gz
Algorithm Hash digest
SHA256 da1d959d6f59616e97a1b5b3adc2b29b4fd04d2eaa1eca4db109827a4eec52b9
MD5 fd5c775d7a8fad5dbb88bab84c329280
BLAKE2b-256 d661268ec952d08859cd2147b56d8ea8a240dc3a29a0c6ec027716f1e327a8fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_results-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fa6842cee2b71df1d35a564e63a01cb7b18db7920fb5404f361e58eb25b647b
MD5 14b652e71ba7bee2f765906fb8c40bf2
BLAKE2b-256 3764e30f062f43af255879610a10e0bfe556d7dceb35ec08252e6635d846d517

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