Skip to main content

Provides tag-expression parser 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-4.1.0.tar.gz (33.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: cucumber-tag-expressions-4.1.0.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/2.7.18

File hashes

Hashes for cucumber-tag-expressions-4.1.0.tar.gz
Algorithm Hash digest
SHA256 e314d5fed6eebb2f90380271f562248fb15e18636764faf40f4dde4b28b1f960
MD5 464a3303f6019a4a7e8ebc3bab55e8e5
BLAKE2b-256 880f980a044d0592a49460199b117880de1cbbb8e46d9c385c772bf87aa537ef

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