Sha256: ea24358743614378f087f85567d6d982747764d31c5af3a2025024db2a501716

Contents?: true

Size: 1.23 KB

Versions: 18

Compression:

Stored size: 1.23 KB

Contents

Feature: Too Long Step
  As a Business Analyst
  I want to write short steps
  so that they are attractive enough to read

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

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

      """

  Scenario: Long Step
    Given a file named "lint.feature" with:
      """
      Feature: Test
        Scenario: A
          When action is quite long so that is not very readable and people even need to scroll because it does not fit on the screen
          Then verification
      """
    When I run `ruby lint.rb`
    Then it should fail with exactly:
      """
      TooLongStep - Used 118 characters
        lint.feature (3): Test.A step: action is quite long so that is not very readable and people even need to scroll because it does not fit on the screen

      """

  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_long_step.feature
gherkin_lint-0.6.2 features/too_long_step.feature
gherkin_lint-0.6.1 features/too_long_step.feature
gherkin_lint-0.6.0 features/too_long_step.feature
gherkin_lint-0.5.0 features/too_long_step.feature
gherkin_lint-0.4.4 features/too_long_step.feature
gherkin_lint-0.4.3 features/too_long_step.feature
gherkin_lint-0.4.2 features/too_long_step.feature
gherkin_lint-0.4.1 features/too_long_step.feature
gherkin_lint-0.4.0 features/too_long_step.feature
gherkin_lint-0.3.1 features/too_long_step.feature
gherkin_lint-0.3.0 features/too_long_step.feature
gherkin_lint-0.1.2 features/too_long_step.feature
gherkin_lint-0.1.1 features/too_long_step.feature
gherkin_lint-0.1.0 features/too_long_step.feature
gherkin_lint-0.0.14 features/too_long_step.feature
gherkin_lint-0.0.13 features/too_long_step.feature
gherkin_lint-0.0.12 features/too_long_step.feature