Sha256: 493fbb15cc64c11c19a4d663eea0a28d83ec11aac6795d524e6eb9304394623d

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

Contents

Feature: Strict mode

  Using the `--strict` flag will cause cucumber to fail unless all the
  step definitions have been defined.

  Background:
    Given a file named "features/missing.feature" with:
    """
    Feature: Missing
      Scenario: Missing
        Given this step passes
    """

  Scenario: Fail with --strict
    When I run `cucumber -q features/missing.feature --strict`
    Then it should fail with:
      """
      Feature: Missing

        Scenario: Missing
          Given this step passes
            Undefined step: "this step passes" (Cucumber::Undefined)
            features/missing.feature:3:in `Given this step passes'

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

  Scenario: Succeed with --strict
    Given the standard step definitions
    When I run `cucumber -q features/missing.feature --strict`
    Then it should pass with:
    """
    Feature: Missing

      Scenario: Missing
        Given this step passes

    1 scenario (1 passed)
    1 step (1 passed)
    """

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cucumber-2.0.0.rc.4 features/docs/cli/strict_mode.feature
cucumber-2.0.0.rc.3 features/docs/cli/strict_mode.feature
cucumber-2.0.0.rc.2 features/docs/cli/strict_mode.feature
cucumber-2.0.0.rc.1 features/docs/cli/strict_mode.feature
cucumber-2.0.0.beta.5 features/docs/cli/strict_mode.feature
cucumber-2.0.0.beta.4 features/docs/cli/strict_mode.feature
cucumber-2.0.0.beta.3 features/docs/cli/strict_mode.feature
cucumber-2.0.0.beta.2 features/docs/cli/strict_mode.feature
cucumber-2.0.0.beta.1 features/docs/cli/strict_mode.feature