File: snippets_when_using_star_keyword.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 (38 lines) | stat: -rw-r--r-- 1,136 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
38
Feature: Use * keywords and still get snippets
  In order to make it possible to use * instead of
  Given/When/Then, I should not get an exception
  when I have undefined steps

  @wip-jruby
  Scenario: Use some *
    Given a standard Cucumber project directory structure
    And a file named "features/f.feature" with:
      """
      Feature: F
        Scenario: S
          * I have some cukes
      """
    When I run cucumber features/f.feature
    Then STDERR should be empty
    And it should pass with
      """
      Feature: F

        Scenario: S           # features/f.feature:2
          * I have some cukes # features/f.feature:3
      
      1 scenario (1 undefined)
      1 step (1 undefined)
      
      You can implement step definitions for undefined steps with these snippets:
      
      Given(/^I have some cukes$/) do
        pending # express the regexp above with the code you wish you had
      end
      
      If you want snippets in a different programming language,
      just make sure a file with the appropriate file extension
      exists where cucumber looks for step definitions.

      
      """