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, retrieve the Pytest fixture assert_results_match in your test:

def test_function(assert_results_match):
    result = {"hello": "world"}
    assert_results_match(result)

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.1.0.tar.gz (7.8 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.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_results-0.1.0.tar.gz
Algorithm Hash digest
SHA256 298ffebc9ee659f3b0408fc253037302f60c9a2c7a9e50ccd3bd6ebe30c57c6c
MD5 fb1f7a1a681a7844466ab906c613c12b
BLAKE2b-256 c5095da41e367451350142f0e6457122a903cb3dc2fa75908c16b55a68381948

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_results-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f290f12825d1630f96873dfb27158c4ba9103caeecb6b1b9dbe84b1be7968e34
MD5 0ddcfaa8b932bf42b9f992b4d9622c20
BLAKE2b-256 8a469d6141a0a9a69481677ce0856fffe9e5e21a729e12a51d6f0cdacc2d50fd

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