https://github.com/100nm/pytest-results
Easily spot regressions in your tests.
https://github.com/100nm/pytest-results
msgspec mypy pydantic pytest pytest-plugin python type-hints typed
Last synced: 8 months ago
JSON representation
Easily spot regressions in your tests.
- Host: GitHub
- URL: https://github.com/100nm/pytest-results
- Owner: 100nm
- Created: 2025-03-06T18:52:10.000Z (10 months ago)
- Default Branch: prod
- Last Pushed: 2025-04-30T10:08:04.000Z (9 months ago)
- Last Synced: 2025-04-30T11:35:22.195Z (9 months ago)
- Topics: msgspec, mypy, pydantic, pytest, pytest-plugin, python, type-hints, typed
- Language: Python
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pytest-results
[](https://github.com/100nm/pytest-results)
[](https://pypi.org/project/pytest-results/)
[](https://github.com/astral-sh/ruff)
Easily spot regressions in your tests.
[Pytest](https://github.com/pytest-dev/pytest) plugin for writing non-regression tests.
## Installation
⚠️ _Requires Python 3.12 or higher_
```bash
pip install pytest-results
```
## Quick start
First, return the value where you want to check the regression:
```python
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:
```bash
pytest --ide vscode
```
_At present, the IDEs supported are `cursor`, `pycharm` and `vscode`._
## Resources
* [**Regression fixture**](https://github.com/100nm/pytest-results/tree/prod/documentation/regression-fixture.md)
* [**Configuration**](https://github.com/100nm/pytest-results/tree/prod/documentation/configuration.md)