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-6.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83a175e06449d7817c88446357ec3b6a336057c9e3264eb09db8449412d31d58 |
|
MD5 | 7011d4435f87822e0b807ea5ed3847aa |
|
BLAKE2b-256 | b4110f49165a943e6ea268dd77dee0f43e92ba7957cdf912ad14b19d01fc632f |
Close
Hashes for cucumber_tag_expressions-6.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cba86a3d1ec03dc5f33488563ca95b8a58f9e67590a18eb1b8dde657f4fd62d |
|
MD5 | a487f3fb4098d103b1dd8b9b91b0d0f1 |
|
BLAKE2b-256 | efef683a4b8f7fc4f499f8a0fada980d28e21e26ce870fd7140b0d5c78f8201e |