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.3.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_store-0.0.3.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.6 Linux/6.5.0-44-generic

File hashes

Hashes for pytest_store-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b08d1a1ae146ad1c5509e4fc1262ae8177a3906a1f631d9f04421d0a087a424d
MD5 8b8354896a94f953d5f79fa5ea358ff4
BLAKE2b-256 a9d8331d66e841661acece4a0ceb53835af209ad5b0db43ff8ed43682e2a51f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_store-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.6 Linux/6.5.0-44-generic

File hashes

Hashes for pytest_store-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 de2b772ad0cd14cf4b175bd9fb76b8ec55f758670ecf9e88022509faf947d16c
MD5 17dc40aebc91839f6134a19afe6c7b42
BLAKE2b-256 4743ddb16369af48e96a820e2f5cf2089d09a0d87abeb011bd56194b3cf70f7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page