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
Close
Hashes for cucumber-tag-expressions-5.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b235ee05edcc1d678c2aca8b5cbd1e5a672a66a03c953a7776aca4c8678c2bce |
|
MD5 | 9bf1ae4ef0b7e337e882b17df681946a |
|
BLAKE2b-256 | 1c19ae4a8023d2609be797665688ade13d9408294c24b4634559a18b4615485d |
Close
Hashes for cucumber_tag_expressions-5.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13ba4d139cbf313539e8349ba87d8d9ad9fb199959aa2fbadf9b616d2d2e9ee |
|
MD5 | 18e4c7e291d90d2882c50a08bf753ff1 |
|
BLAKE2b-256 | 6ffa0ded47fabfa102e65faa46bb1459e95deae50ffb0cd0f816206fe0c5d6c4 |