cucumber-tag-expressions


Namecucumber-tag-expressions JSON
Version 6.1.1 PyPI version JSON
download
home_pageNone
SummaryProvides a tag-expression parser and evaluation logic for cucumber/behave
upload_time2024-10-28 12:04:29
maintainerNone
docs_urlNone
authorNone
requires_python>=2.7
licenseMIT
keywords bdd testing cucumber tag-expressions behave
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Cucumber Tag Expressions for Python
===============================================================================

.. |badge.CI_status| image:: https://github.com/cucumber/tag-expressions/actions/workflows/test-python.yml/badge.svg
    :target: https://github.com/cucumber/tag-expressions/actions/workflows/test-python.yml
    :alt: CI Build Status

.. |badge.latest_version| image:: https://img.shields.io/pypi/v/cucumber-tag-expressions.svg
    :target: https://pypi.python.org/pypi/cucumber-tag-expressions
    :alt: Latest Version

.. |badge.license| image:: https://img.shields.io/pypi/l/cucumber-tag-expressions.svg
    :target: https://pypi.python.org/pypi/cucumber-tag-expressions
    :alt: License

.. |badge.downloads| image:: https://img.shields.io/pypi/dm/cucumber-tag-expressions.svg
    :target: https://pypi.python.org/pypi/cucumber-tag-expressions
    :alt: Downloads

.. |logo| image:: https://github.com/cucumber-ltd/brand/raw/master/images/png/notm/cucumber-black/cucumber-black-128.png


|badge.CI_status| |badge.latest_version| |badge.license| |badge.downloads|

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:

* https://cucumber.io/docs/cucumber/api/#tag-expressions


EXAMPLE:
-----------------------------------------------------------------

A cucumber test runner selects some scenarios by using tag-expressions and runs them:

.. code:: sh

    # -- 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:

.. code:: gherkin

    # -- 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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cucumber-tag-expressions",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=2.7",
    "maintainer_email": null,
    "keywords": "BDD, testing, cucumber, tag-expressions, behave",
    "author": null,
    "author_email": "Jens Engel <jenisys@noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/5d/bb/38e1fbb680695d5265355caaaed015a5268c94a570a75f24e1838d7f7708/cucumber_tag_expressions-6.1.1.tar.gz",
    "platform": "any",
    "description": "Cucumber Tag Expressions for Python\n===============================================================================\n\n.. |badge.CI_status| image:: https://github.com/cucumber/tag-expressions/actions/workflows/test-python.yml/badge.svg\n    :target: https://github.com/cucumber/tag-expressions/actions/workflows/test-python.yml\n    :alt: CI Build Status\n\n.. |badge.latest_version| image:: https://img.shields.io/pypi/v/cucumber-tag-expressions.svg\n    :target: https://pypi.python.org/pypi/cucumber-tag-expressions\n    :alt: Latest Version\n\n.. |badge.license| image:: https://img.shields.io/pypi/l/cucumber-tag-expressions.svg\n    :target: https://pypi.python.org/pypi/cucumber-tag-expressions\n    :alt: License\n\n.. |badge.downloads| image:: https://img.shields.io/pypi/dm/cucumber-tag-expressions.svg\n    :target: https://pypi.python.org/pypi/cucumber-tag-expressions\n    :alt: Downloads\n\n.. |logo| image:: https://github.com/cucumber-ltd/brand/raw/master/images/png/notm/cucumber-black/cucumber-black-128.png\n\n\n|badge.CI_status| |badge.latest_version| |badge.license| |badge.downloads|\n\nCucumber tag-expressions for Python.\n\n|logo|\n\nCucumber tag-expressions provide readable boolean expressions\nto select features and scenarios marked with tags in Gherkin files\nin an easy way::\n\n    # -- SIMPLE TAG-EXPRESSION EXAMPLES:\n    @a and @b\n    @a or  @b\n    not @a\n\n    # -- MORE TAG-EXPRESSION EXAMPLES:\n    @a and not @b\n    (@a or @b) and not @c\n\nSEE ALSO:\n\n* https://cucumber.io/docs/cucumber/api/#tag-expressions\n\n\nEXAMPLE:\n-----------------------------------------------------------------\n\nA cucumber test runner selects some scenarios by using tag-expressions and runs them:\n\n.. code:: sh\n\n    # -- TAG-EXPRESSION: @one and @two\n    # EXPECTED: Selects and runs scenario \"Three\".\n    $ my_cucumber_test_runner --tags=\"@one and @two\" features/example.feature\n    ...\n\n    # -- TAG-EXPRESSION: @one or @two\n    # EXPECTED: Selects and runs scenarios \"One\", \"Two\" and \"Three\".\n    $ my_cucumber_test_runner --tags=\"@one or @two\" features/example.feature\n    ...\n\nby using the following feature file:\n\n.. code:: gherkin\n\n    # -- FILE: features/example.feature\n    Feature: Tag-Expressions Example\n\n      @one\n      Scenario: One\n        Given a step passes\n\n      @two\n      Scenario: Two\n        Given another step passes\n\n      @one @two\n      Scenario: Three\n        Given some step passes\n\n      Scenario: Four\n        Given another step passes\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Provides a tag-expression parser and evaluation logic for cucumber/behave",
    "version": "6.1.1",
    "project_urls": {
        "Download": "https://pypi.org/project/cucumber-tag-expressions",
        "Homepage": "https://github.com/cucumber/tag-expressions",
        "Issues": "https://github.com/cucumber/tag-expressions/issues/",
        "Repository": "https://github.com/cucumber/tag-expressions"
    },
    "split_keywords": [
        "bdd",
        " testing",
        " cucumber",
        " tag-expressions",
        " behave"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6310ca4c1f064f107f9909c81ebf7cf0d7c4d71b1e8596fdd165a8b77c2dddc5",
                "md5": "14c615d327d6d6aab5dfc60b72a92872",
                "sha256": "9c6f92dddeca506a33c576eaf62261c050a4216d5fd6557a362d18545b20b2a2"
            },
            "downloads": -1,
            "filename": "cucumber_tag_expressions-6.1.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "14c615d327d6d6aab5dfc60b72a92872",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.7",
            "size": 8472,
            "upload_time": "2024-10-28T12:04:27",
            "upload_time_iso_8601": "2024-10-28T12:04:27.268905Z",
            "url": "https://files.pythonhosted.org/packages/63/10/ca4c1f064f107f9909c81ebf7cf0d7c4d71b1e8596fdd165a8b77c2dddc5/cucumber_tag_expressions-6.1.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5dbb38e1fbb680695d5265355caaaed015a5268c94a570a75f24e1838d7f7708",
                "md5": "39493eeb278e047f659222105f0660dc",
                "sha256": "ec6bcf0957d8c6ea7b817d282b4e04243c0de087dda1e354505a5544937a574e"
            },
            "downloads": -1,
            "filename": "cucumber_tag_expressions-6.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "39493eeb278e047f659222105f0660dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.7",
            "size": 40222,
            "upload_time": "2024-10-28T12:04:29",
            "upload_time_iso_8601": "2024-10-28T12:04:29.225248Z",
            "url": "https://files.pythonhosted.org/packages/5d/bb/38e1fbb680695d5265355caaaed015a5268c94a570a75f24e1838d7f7708/cucumber_tag_expressions-6.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-28 12:04:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cucumber",
    "github_project": "tag-expressions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cucumber-tag-expressions"
}
        
Elapsed time: 0.42402s