Vedro tags with boolean logic
Project description
Vedro Advanced Tags
Installation
Quick
For a quick installation, you can use a plugin manager as follows:
$ vedro plugin install vedro-advanced-tags
$ vedro plugin disable vedro.plugins.tagger
Manual
To install manually, follow these steps:
- Install the package using pip:
$ pip3 install vedro-advanced-tags
- Next, activate the plugin in your
vedro.cfg.py
configuration file:
# ./vedro.cfg.py
import vedro
import vedro.plugins.tagger as tagger
import vedro_advanced_tags as adv_tagger
class Config(vedro.Config):
class Plugins(vedro.Config.Plugins):
class Tagger(tagger.Tagger):
enabled = False # disable default tagger
class VedroAdvancedTags(adv_tagger.VedroAdvancedTags):
enabled = True
Usage
First, add tags to your scenarios:
import vedro
class Scenario(vedro.Scenario):
subject = "register user"
tags = ["P0", "API"]
Then, you can run scenarios with specific tags.
AND
To run scenarios that include both specified tags, use the and operator:
$ vedro run --tags "P0 and API"
OR
To run scenarios that contain either of the specified tags, use the or operator:
$ vedro run --tags "API or CLI"
NOT
To run scenarios that do not include a specific tag, use the not operator:
$ vedro run --tags "not P0"
EXPR
To run scenarios that meet multiple conditions, use expressions.
For instance, to execute scenarios that either include the API
or CLI
tag, and do not include the P0
tag, you can use:
$ vedro run --tags "(API or CLI) and (not P0)"
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
vedro-advanced-tags-0.2.0.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for vedro-advanced-tags-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb22a71b7342ec6ea3b6b2e85805a9d6717be716c4467cb4549be0ec67dbe43 |
|
MD5 | 3c388aef93cf67eda42ef1e48f35c9a5 |
|
BLAKE2b-256 | 721ce9694246b353827b88ba07f667db70426b19f88f6cb840e35fce889a4e3c |
Close
Hashes for vedro_advanced_tags-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0273311fa98070bc9d67efb947339c51e2b47280f660e0fbb23d73e8e2266403 |
|
MD5 | 445355c19c499ab70e8f12bac17d052c |
|
BLAKE2b-256 | f940f7cf133362eeec903992c0e3579dbf9a8fd7beb0be9e94230f19581b44ae |