File: rerun_formatter.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 (52 lines) | stat: -rw-r--r-- 1,106 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Feature: Rerun Debugger
  In order to save time
  I want to run *only* failed, pending and missing features from previous runs
  (with the help of a smart cucumber.yml)

  Background:
    Given a standard Cucumber project directory structure

  Scenario: title
    Given a file named "features/sample.feature" with:
      """
      Feature: Rerun

        Scenario: Failing
          Given failing

        Scenario: Missing
          Given missing

        Scenario: Pending
          Given pending

        Scenario: Passing
          Given passing
      """
    And a file named "features/all_good.feature" with:
      """
      Feature: Rerun

        Scenario: Passing
          Given passing
      """
    And a file named "features/step_definitions/steps.rb" with:
      """
      Given /failing/ do
        raise 'FAIL'
      end

      Given /pending/ do
        pending
      end

      Given /passing/ do
      end
      """

    When I run cucumber -f rerun features/sample.feature features/all_good.feature
    Then it should fail with
      """
      features/sample.feature:3:6:9

      """