Sha256: 3a241c586d958a0b69909e2850f2077e875235ec19f2d741cb85c934c9a93089

Contents?: true

Size: 1.34 KB

Versions: 18

Compression:

Stored size: 1.34 KB

Contents

Feature: Too Many Different Tags
  As a Business Analyst
  I want that there are not that many different tags used within my specification
  so that readers do not need to know that much context

  Background: Prepare Testee
    Given a file named "lint.rb" with:
      """
      $LOAD_PATH << '../../lib'
      require 'gherkin_lint'

      linter = GherkinLint::GherkinLint.new
      linter.enable %w(TooManyDifferentTags)
      linter.analyze 'lint.feature'
      exit linter.report

      """

  Scenario: Many Different Tags
    Given a file named "lint.feature" with:
      """
      Feature: Test
        @A @B
        Scenario: A

        @C @D
        Scenario: A

        @E @F
        Scenario: A

        @G @H
        Scenario: A

        @I @J
        Scenario: A

        @K @L
        Scenario: A
      """
    When I run `ruby lint.rb`
    Then it should fail with exactly:
      """
      TooManyDifferentTags - Used 12 Tags within single Feature
        lint.feature (1): Test
      TooManyDifferentTags - Used 12 Tags across all Features
        lint.feature (1): Test

      """

  Scenario: Valid Example
    Given a file named "lint.feature" with:
      """
      Feature: Test
        Scenario: A
          When action
          Then verification
      """
    When I run `ruby lint.rb`
    Then it should pass with exactly:
      """

      """

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gherkin_lint-0.6.3 features/too_many_different_tags.feature
gherkin_lint-0.6.2 features/too_many_different_tags.feature
gherkin_lint-0.6.1 features/too_many_different_tags.feature
gherkin_lint-0.6.0 features/too_many_different_tags.feature
gherkin_lint-0.5.0 features/too_many_different_tags.feature
gherkin_lint-0.4.4 features/too_many_different_tags.feature
gherkin_lint-0.4.3 features/too_many_different_tags.feature
gherkin_lint-0.4.2 features/too_many_different_tags.feature
gherkin_lint-0.4.1 features/too_many_different_tags.feature
gherkin_lint-0.4.0 features/too_many_different_tags.feature
gherkin_lint-0.3.1 features/too_many_different_tags.feature
gherkin_lint-0.3.0 features/too_many_different_tags.feature
gherkin_lint-0.1.2 features/too_many_different_tags.feature
gherkin_lint-0.1.1 features/too_many_different_tags.feature
gherkin_lint-0.1.0 features/too_many_different_tags.feature
gherkin_lint-0.0.14 features/too_many_different_tags.feature
gherkin_lint-0.0.13 features/too_many_different_tags.feature
gherkin_lint-0.0.12 features/too_many_different_tags.feature