File: exclude_files.feature

package info (click to toggle)
cucumber 1.3.17-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,296 kB
  • ctags: 1,812
  • sloc: ruby: 13,576; python: 28; sh: 10; makefile: 10; tcl: 3
file content (20 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Feature: Exclude ruby and feature files from runs
  Developers should be able to easily exclude files from cucumber runs
  This is a nice feature to have in conjunction with profiles, so you can exclude
  certain environment files from certain runs.

  Scenario: exclude ruby files
    Given a standard Cucumber project directory structure
    And a file named "features/support/dont_require_me.rb"
    And a file named "features/step_definitions/fooz.rb"
    And a file named "features/step_definitions/foof.rb"
    And a file named "features/step_definitions/foot.rb"
    And a file named "features/support/require_me.rb"

    When I run cucumber features -q --verbose --exclude features/support/dont --exclude foo[zf]

    Then "features/support/require_me.rb" should be required
    And "features/step_definitions/foot.rb" should be required
    And "features/support/dont_require_me.rb" should not be required
    And "features/step_definitions/foof.rb" should not be required
    And "features/step_definitions/fooz.rb" should not be required