Skip to main content

Pytest plugin to store values from test runs

Project description

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.

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_store-0.0.6.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_store-0.0.6-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file pytest_store-0.0.6.tar.gz.

File metadata

  • Download URL: pytest_store-0.0.6.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-64-generic

File hashes

Hashes for pytest_store-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e030cb486cab38fc427193fca504da6041161107e1e80715d2ea335fa169ff88
MD5 60e79565bf6c8286922e5f86ca045129
BLAKE2b-256 ffe78fddea4c8cf0d8fcf0e662f7f53ac543d4dd939912d646569d656248a31f

See more details on using hashes here.

File details

Details for the file pytest_store-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pytest_store-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-64-generic

File hashes

Hashes for pytest_store-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 041d84ba1d1f18283704f2b895c1d2f0231b099b2da4a74a7d0e4d0529a34f6f
MD5 4577657d06adcb623fde06b3b7ba9864
BLAKE2b-256 5cb7ebbf63ebbf4846b4667fa3b0fabbd5043acb98a5f2ef14ba511224fab84f

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