Sha256: b375e917cbd0d3c5d12e8c2b7026ede0da378790fcdcaab232603968e08d6fa7

Contents?: true

Size: 634 Bytes

Versions: 28

Compression:

Stored size: 634 Bytes

Contents

Feature: Requiring extra step files

  Cucumber allows you to require extra files using the `-r` option.

  Scenario:
    Given a file named "features/test.feature" with:
      """
      Feature: Sample
        Scenario: Sample
          Given found in extra file
      """
    And a file named "tmp/extras.rb" with:
      """
      Given(/^found in extra file$/) { }
      """
    When I run `cucumber -q -r tmp/extras.rb features/test.feature`
    Then it should pass with:
      """
      Feature: Sample

        Scenario: Sample
          Given found in extra file

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

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
cucumber-3.0.1 features/docs/cli/require.feature
cucumber-2.99.0 features/docs/cli/require.feature
cucumber-3.0.0 features/docs/cli/require.feature
cucumber-3.0.0.pre.2 features/docs/cli/require.feature
mobiusloop-0.1.5 features/docs/cli/require.feature
cucumber-3.0.0.pre.1 features/docs/cli/require.feature
cucumber-2.4.0 features/docs/cli/require.feature
mobiusloop-0.1.3 features/docs/cli/require.feature
mobiusloop-0.1.2 features/docs/cli/require.feature
cucumber-2.3.3 features/docs/cli/require.feature
cucumber-2.3.2 features/docs/cli/require.feature
cucumber-2.3.1 features/docs/cli/require.feature
cucumber-2.3.0 features/docs/cli/require.feature
cucumber-2.2.0 features/docs/cli/require.feature
cucumber-2.1.0 features/docs/cli/require.feature
cucumber-2.0.2 features/docs/cli/require.feature
cucumber-2.0.1 features/docs/cli/require.feature
cucumber-2.0.0 features/docs/cli/require.feature
cucumber-2.0.0.rc.5 features/docs/cli/require.feature
cucumber-2.0.0.rc.4 features/docs/cli/require.feature