Sha256: c35fc639ba74d6e477cbe0c7483894185ebf839b602da95b916ddac5495704a0

Contents?: true

Size: 1.87 KB

Versions: 14

Compression:

Stored size: 1.87 KB

Contents

Feature: Dry Run

  Dry run gives you a way to quickly scan your features without actually running them.

  - Invokes formatters without executing the steps.
  - This also omits the loading of your support/env.rb file if it exists.

  Scenario: With a failing step
    Given a file named "features/test.feature" with:
      """
      Feature: test
        Scenario:
          Given this step fails
      """
    And the standard step definitions
    When I run `cucumber --dry-run`
    Then it should pass with exactly:
      """
      Feature: test

        Scenario:               # features/test.feature:2
          Given this step fails # features/step_definitions/steps.rb:4

      1 scenario (1 skipped)
      1 step (1 skipped)

      """

  Scenario: In strict mode
    Given a file named "features/test.feature" with:
      """
      Feature: test
        Scenario:
          Given this step fails
      """
    And the standard step definitions
    When I run `cucumber --dry-run --strict`
    Then it should pass with exactly:
      """
      Feature: test

        Scenario:               # features/test.feature:2
          Given this step fails # features/step_definitions/steps.rb:4

      1 scenario (1 skipped)
      1 step (1 skipped)

      """

  Scenario: In strict mode with an undefined step
    Given a file named "features/test.feature" with:
      """
      Feature: test
        Scenario:
          Given this step is undefined
      """
    When I run `cucumber --dry-run --strict`
    Then it should fail with:
      """
      Feature: test

        Scenario:                      # features/test.feature:2
          Given this step is undefined # features/test.feature:3
            Undefined step: "this step is undefined" (Cucumber::Undefined)
            features/test.feature:3:in `Given this step is undefined'

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

      """

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
cucumber-2.99.0 features/docs/cli/dry_run.feature
mobiusloop-0.1.5 features/docs/cli/dry_run.feature
cucumber-3.0.0.pre.1 features/docs/cli/dry_run.feature
cucumber-2.4.0 features/docs/cli/dry_run.feature
mobiusloop-0.1.3 features/docs/cli/dry_run.feature
mobiusloop-0.1.2 features/docs/cli/dry_run.feature
cucumber-2.3.3 features/docs/cli/dry_run.feature
cucumber-2.3.2 features/docs/cli/dry_run.feature
cucumber-2.3.1 features/docs/cli/dry_run.feature
cucumber-2.3.0 features/docs/cli/dry_run.feature
cucumber-2.2.0 features/docs/cli/dry_run.feature
cucumber-2.1.0 features/docs/cli/dry_run.feature
cucumber-2.0.2 features/docs/cli/dry_run.feature
cucumber-2.0.1 features/docs/cli/dry_run.feature