Skip to main content

Provides a tag-expression parser and evaluation logic for cucumber/behave

Project description

CI Build Status Latest Version License

Cucumber tag-expressions for Python.

logo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cucumber-tag-expressions-6.1.0.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

cucumber_tag_expressions-6.1.0-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cucumber-tag-expressions-6.1.0.tar.gz.

File metadata

File hashes

Hashes for cucumber-tag-expressions-6.1.0.tar.gz
Algorithm Hash digest
SHA256 3758d312315efac8215865db1783748df5ef66324352068b32f845b7707fed5b
MD5 2c224b10ac72a5f9d351232f1ae9a830
BLAKE2b-256 6f9bb90d1a022d9d81d6b4bc2d1e212cbdab1482bf58c0de319378087ae5f513

See more details on using hashes here.

File details

Details for the file cucumber_tag_expressions-6.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cucumber_tag_expressions-6.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 56f606fb3af85d9b7eb2f27b6bdd2850d02baa3bf92f6dc7891186e1e21a2319
MD5 6f435e68280da3c9a0c9017828b8f8bd
BLAKE2b-256 8b672e31f62207c2fe24f530411cf9f07bbd8674941f5c0bfca7221d95945379

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page