vedro-lazy-rerunner
The vedro-lazy-rerunner is a plugin for the Vedro testing framework.
It reruns failed scenarios until they pass for the first time. If none of the reruns are successful, the test is marked as failed after the designated number of attempts.
Installation
- Install the package using pip:
$ pip3 install vedro-lazy-rerunner
- Then, activate the plugin in your vedro.cfg.py configuration file:
# ./vedro.cfg.py
import vedro
import vedro_lazy_rerunner
class Config(vedro.Config):
class Plugins(vedro.Config.Plugins):
class LazyRerunner(vedro_lazy_rerunner.LazyRerunner):
enabled = True
Usage
Run Vedro with the --lazy-reruns option set to the desired number of reruns:
$ vedro run --lazy-reruns=5
Examples
- A test will not be rerun further if it passes during one of the reruns:
$ vedro run --lazy-reruns=5
Scenarios
*
✔ check number
│
├─[1/2] ✗ check number
│
├─[2/2] ✔ check number
# 1 scenario, 1 passed, 0 failed, 0 skipped (0.01s)
The test passed on the second attempt. The remaining 3 attempts were not needed. The test is considered passed.
- A test is marked as failed if it does not pass in any of the attempts:
$ vedro run --lazy-reruns=5
Scenarios
*
✗ check number
│
├─[1/5] ✗ check number
│
├─[2/5] ✗ check number
│
├─[3/5] ✗ check number
│
├─[4/5] ✗ check number
│
├─[5/5] ✗ check number
# 1 scenario, 0 passed, 1 failed, 0 skipped (0.02s)
The test is considered failed as it did not pass in any of the 5 attempts.
Metadata
Release files for vedro-lazy-rerunner 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vedro-lazy-rerunner-0.1.1.tar.gz | 9.0 kB | Without provenance | Details for vedro-lazy-rerunner-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vedro_lazy_rerunner-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for vedro_lazy_rerunner-0.1.1-py3-none-any.whl |
Total release size: 16.9 kB
Release files / vedro-lazy-rerunner-0.1.1.tar.gz
| Download URL | vedro-lazy-rerunner-0.1.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4a32db84f943f501214f35a9a3aedb19b398768cd2ff6c3c869b2b7458c516d
|
|
BLAKE2b-256 checksum How to use checksums |
65c93d482c0e7158e1b840b4d0ca041c92ce28cc2b98115581e221228710e053
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / vedro_lazy_rerunner-0.1.1-py3-none-any.whl
| Download URL | vedro_lazy_rerunner-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc2d262b1aba3a73aa867a9c14bd3fac34cf7277fea846227813a5ab7655dd17
|
|
BLAKE2b-256 checksum How to use checksums |
551f804005de0aae0df02f0c3e9e494128c15bda18c253e25062aac16c5db3f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for vedro-lazy-rerunner 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.