Provides a tag-expression parser and evaluation logic for cucumber/behave
Project description
Cucumber tag-expressions for Python.
Cucumber tag-expressions provide readable boolean expressions to select features and scenarios marked with tags in Gherkin files in an easy way:
# -- SIMPLE TAG-EXPRESSION EXAMPLES: @a and @b @a or @b not @a # -- MORE TAG-EXPRESSION EXAMPLES: @a and not @b (@a or @b) and not @c
SEE ALSO:
EXAMPLE:
A cucumber test runner selects some scenarios by using tag-expressions and runs them:
# -- TAG-EXPRESSION: @one and @two
# EXPECTED: Selects and runs scenario "Three".
$ my_cucumber_test_runner --tags="@one and @two" features/example.feature
...
# -- TAG-EXPRESSION: @one or @two
# EXPECTED: Selects and runs scenarios "One", "Two" and "Three".
$ my_cucumber_test_runner --tags="@one or @two" features/example.feature
...
by using the following feature file:
# -- FILE: features/example.feature
Feature: Tag-Expressions Example
@one
Scenario: One
Given a step passes
@two
Scenario: Two
Given another step passes
@one @two
Scenario: Three
Given some step passes
Scenario: Four
Given another step passes
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
File details
Details for the file cucumber-tag-expressions-5.0.0.tar.gz
.
File metadata
- Download URL: cucumber-tag-expressions-5.0.0.tar.gz
- Upload date:
- Size: 37.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e998ec33b3e490fece8602b5b4c81835a3cab690fff7ffefcfa89ea0ae60a3 |
|
MD5 | 721986b58d98036a5bd035493170d733 |
|
BLAKE2b-256 | 8fd3df1bdbacee7ce6c84fbcdc9a1a1523290f8ee44842fc38fc22c701ea8a80 |
File details
Details for the file cucumber_tag_expressions-5.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: cucumber_tag_expressions-5.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6901000dbd3a688964aec5011af8e08ebbcc696ee0533f555b1e7074da06e625 |
|
MD5 | 773ce570e66a37b6c7c4f2044f1084cb |
|
BLAKE2b-256 | e8667b68be4e102a78cf4c246ba83665a575c1d37a6ca0d11e01b1134228cf2c |