File: finding_steps.feature

package info (click to toggle)
cucumber 2.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,076 kB
  • sloc: ruby: 17,016; javascript: 4,641; makefile: 12; sh: 10; tcl: 3
file content (28 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Feature: Loading the steps users expect
  As a User
  In order to run features in subdirectories without having to pass extra options
  I want cucumber to load all step files

  Scenario:
    Given a file named "features/nesting/test.feature" with:
      """
      Feature: Feature in Subdirectory
        Scenario: A step not in the subdirectory
          Given not found in subdirectory
      """
    And a file named "features/step_definitions/steps_no_in_subdirectory.rb" with:
      """
      Given(/^not found in subdirectory$/) { }
      """
    When I run `cucumber -q features/nesting/test.feature`
    Then it should pass with:
      """
      Feature: Feature in Subdirectory

        Scenario: A step not in the subdirectory
          Given not found in subdirectory

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