Vedro Flaky Steps Plugin
How to install?
To install plugin, follow these steps:
Using pip:
$ pip install git+https://github.com/miner34006/vedro-flaky-steps@main
OR
$ pip install vedro-flaky-steps
Using Vedro plugin manager:
$ vedro plugin install vedro-allure-reporter
How to use?
First you need to deactivate rerunner plugin and activate vedro-flakys-steps plugin (reruns are available with same --reruns option)
# ./vedro.cfg.py
import vedro
import vedro.plugins.rerunner as rerunner
import vedro_flaky_steps as flaker
class Config(vedro.Config):
class Plugins(vedro.Config.Plugins):
class Rerunner(rerunner.Rerunner):
enabled = False
class FlakySteps(flaker.FlakySteps):
enabled = True
Then you can use @expected_failure decorator in your Vedro scenarios:
class Scenario(vedro.Scenario):
@expected_failure('.*random.randint.*', continue_on_error=True, comment='your message here')
def your_flaky_step(self):
assert random.randint(0, 1)
Behaviour
expected_failure has 3 options:
expected_error_regexp- regular expression to find your expected flaky error.continue_on_error- flag that tells the plugin whether to perform further steps, when met expected flaky error. If set toTruethe next step will be executed when flaky step failed with expected error. If set toFalsescenario will be finished on that step (scenario will have a success status).comment- any information that will be printed in case expected flaky error was met.
After all scenarios have been finished, summary will be displayed in case at least one flaky error was met:
# 1 expected errors met in 1 scenarios, 1 errors skipped
Metadata
Release files for vedro-flaky-steps 1.1.2
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-flaky-steps-1.1.2.tar.gz | 12.3 kB | Without provenance | Details for vedro-flaky-steps-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vedro_flaky_steps-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for vedro_flaky_steps-1.1.2-py3-none-any.whl |
Total release size: 22.6 kB
Release files / vedro-flaky-steps-1.1.2.tar.gz
| Download URL | vedro-flaky-steps-1.1.2.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6827202c58635b174cb6fe7532658854c311061d2f14b405d860b231aedd63a2
|
|
BLAKE2b-256 checksum How to use checksums |
74834d33dc09c4077fc66e93e545b77e172cec2d0889d90331c078191bf35c70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / vedro_flaky_steps-1.1.2-py3-none-any.whl
| Download URL | vedro_flaky_steps-1.1.2-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57d51963b7119e6b199b214f410c6c7a1ccbce8cdbc0ac1d70d22abbb58c736d
|
|
BLAKE2b-256 checksum How to use checksums |
1e62194ed6738dbfd64ea1b572d219d120c40a272257fddb5f2db2d261538c0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Security for vedro-flaky-steps 1.1.2
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.