Skip to main content

pytest-store

Rerun whole testsuites for a certain time or amount

Still under development.

Arguments

--store-type <pl|pd|list-dict|none>
Set store type (default: installed extra)

--store-save <path>
Save file to path, format depends on the ending unless specified.

--store-save-format <format>
Save format, depends on store type.

--store-save-force
Overwrite existing file

NOTE: All arguments can also be set as environment variables, e.g. RERUN_TIME="1 hour", or ini option, e.g. rerun_time="10 min".

Examples

# save results as polars and export to excel
pytest --store-type pl --store-save results.xls examples  

Installation

You can install pytest-store via pip from PyPI or this repo:

pip install pytest-store[<extra>] # extras = "all", "pandas", "polars", "database", "excel", "parquet"
pip install pytest-store[polars,excel,database]
pip install git+git@github.com:TBxy/pytest-store.git@main # latest version
pip install pytest-store --all-extras # development

Todos

  • SQL backend, which saves as stream
  • Write tests
  • Github Actions

Contributing

Contributions are very welcome. Tests are not ready at the moment, use the example scripts.

License

Distributed under the terms of the MIT license, pytest-store is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.


This pytest plugin was generated with Cookiecutter along with @hackebrot's cookiecutter-pytest-plugin template.

Release files for pytest-store 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-store 0.0.6
File Size Uploaded
pytest_store-0.0.6.tar.gz 12.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-store 0.0.6
File Interpreter ABI Platform
pytest_store-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / pytest_store-0.0.6.tar.gz

Download URL pytest_store-0.0.6.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e030cb486cab38fc427193fca504da6041161107e1e80715d2ea335fa169ff88
BLAKE2b-256 checksum
How to use checksums
ffe78fddea4c8cf0d8fcf0e662f7f53ac543d4dd939912d646569d656248a31f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-64-generic

Release files / pytest_store-0.0.6-py3-none-any.whl

Download URL pytest_store-0.0.6-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
041d84ba1d1f18283704f2b895c1d2f0231b099b2da4a74a7d0e4d0529a34f6f
BLAKE2b-256 checksum
How to use checksums
5cb7ebbf63ebbf4846b4667fa3b0fabbd5043acb98a5f2ef14ba511224fab84f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-64-generic

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page