Sha256: aa4a396969124add884062f3ad7a351bc3a1c8568e29408d8fa4e1626b1d0461

Contents?: true

Size: 1.26 KB

Versions: 68

Compression:

Stored size: 1.26 KB

Contents

Feature: Tag logic
  In order to conveniently run subsets of features
  As a Cuker
  I want to select features using logical AND/OR of tags

  Background:
    Given a file named "features/tagulicious.feature" with:
      """
      Feature: Sample

        @one @three
        Scenario: Example
          Given passing

        @one
        Scenario: Another Example
          Given passing

        @three
        Scenario: Yet another Example
          Given passing

        @ignore
        Scenario: And yet another Example
      """

  Scenario: ANDing tags
    When I run `cucumber -q -t @one -t @three features/tagulicious.feature`
    Then it should pass with:
      """
      Feature: Sample

        @one @three
        Scenario: Example
          Given passing

      1 scenario (1 undefined)
      1 step (1 undefined)

      """

  Scenario: ORing tags
    When I run `cucumber -q -t @one,@three features/tagulicious.feature`
    Then it should pass with:
      """
      Feature: Sample

        @one @three
        Scenario: Example
          Given passing

        @one
        Scenario: Another Example
          Given passing

        @three
        Scenario: Yet another Example
          Given passing

      3 scenarios (3 undefined)
      3 steps (3 undefined)

      """

Version data entries

68 entries across 66 versions & 9 rubygems

Version Path
cucumber-1.3.20 features/execute_with_tag_filter.feature
cucumber-1.3.19 features/execute_with_tag_filter.feature
cucumber-1.3.18 features/execute_with_tag_filter.feature
cucumber-1.3.17 features/execute_with_tag_filter.feature
cucumber-1.3.16 features/execute_with_tag_filter.feature
cucumber-1.3.15 features/execute_with_tag_filter.feature
cucumber-1.3.14 features/execute_with_tag_filter.feature
cucumber-1.3.13 features/execute_with_tag_filter.feature
cucumber-1.3.12 features/execute_with_tag_filter.feature
cucumber-1.3.11 features/execute_with_tag_filter.feature
cucumber-1.3.10 features/execute_with_tag_filter.feature
cucumber-1.3.9 features/execute_with_tag_filter.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/features/execute_with_tag_filter.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/features/execute_with_tag_filter.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/features/execute_with_tag_filter.feature
cucumber-1.3.8 features/execute_with_tag_filter.feature
cucumber-1.3.7 features/execute_with_tag_filter.feature
cucumber-1.3.6 features/execute_with_tag_filter.feature
cucumber-1.3.5 features/execute_with_tag_filter.feature
cucumber-1.3.4 features/execute_with_tag_filter.feature