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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec6bcf0957d8c6ea7b817d282b4e04243c0de087dda1e354505a5544937a574e |
|
MD5 | 39493eeb278e047f659222105f0660dc |
|
BLAKE2b-256 | 5dbb38e1fbb680695d5265355caaaed015a5268c94a570a75f24e1838d7f7708 |
Close
Hashes for cucumber_tag_expressions-6.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c6f92dddeca506a33c576eaf62261c050a4216d5fd6557a362d18545b20b2a2 |
|
MD5 | 14c615d327d6d6aab5dfc60b72a92872 |
|
BLAKE2b-256 | 6310ca4c1f064f107f9909c81ebf7cf0d7c4d71b1e8596fdd165a8b77c2dddc5 |