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-5.0.4.tar.gz (38.7 kB view details)

Uploaded Source

Built Distribution

cucumber_tag_expressions-5.0.4-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for cucumber-tag-expressions-5.0.4.tar.gz
Algorithm Hash digest
SHA256 9ed3a876ad0c036b89a68498850ed3fb2b6c4331b2a2822a6d4ae4413f8e5818
MD5 c689d91d15d6e012873d3c3fada5c5d7
BLAKE2b-256 c1a6bc4be6e1978b19ceff2f92949bb6d32bf6e1dbd7caeb303a6a3cab3af944

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cucumber_tag_expressions-5.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 51318c86a99f974f1c950a29f26d415f825934450077770fd18e8563047d9955
MD5 a318d1d1f290cb889b507d9f697a2e3d
BLAKE2b-256 816055a470e775c632105322f4c092b8edc2592f88b9582e8a2adcc67e912dc6

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