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
pip install git+git@github.com:TBxy/pytest-store.git@main # latest version
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_store-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c72505c3834b508e80fcdcffe338bd4e2d92b9137f88b22dc9c85301d9608321 |
|
MD5 | 6d9b7d123a4dc730a6b2572e37b6c6bb |
|
BLAKE2b-256 | 8c0f95164da9cb8f0fd9ca36d6aed9a9465fe5377ce0169d051ea12b99efda84 |