Skip to content
This repository
Browse code

1 failure

  • Loading branch information...
commit a20c5e2483614c56579ac719af0e841e92e3f5ae 1 parent d4c827d
Aslak Hellesøy authored April 18, 2010
5  features/wire_protocol.feature
@@ -109,7 +109,7 @@ Feature: Wire Protocol
109 109
       """
110 110
       -
111 111
 
112  
-      we.*    # MyApp.MyClass:123
  112
+      we.*   # MyApp.MyClass:123
113 113
 
114 114
       1 scenario (1 skipped)
115 115
       1 step (1 skipped)
@@ -294,10 +294,11 @@ Feature: Wire Protocol
294 294
     Given there is a wire server running on port 54321 which understands the following protocol:
295 295
       | request                                                                                          | response                         |
296 296
       | ["step_matches",{"name_to_match":"we're all wired"}]                                             | ["success",[]]                   |
297  
-      | ["snippet_text",{"step_keyword":"Given","multiline_arg_class":"","step_name":"we're all wired"}] | ["success","foo()\n  bar;\nbaz"] |
  297
+      | ["snippet_text",{"step_keyword":"Given ","multiline_arg_class":"","step_name":"we're all wired"}] | ["success","foo()\n  bar;\nbaz"] |
298 298
       | ["begin_scenario"]                                                                               | ["success"]                      |
299 299
       | ["end_scenario"]                                                                                 | ["success"]                      |
300 300
     When I run cucumber -f pretty
  301
+    Then STDERR should be empty
301 302
     And it should pass with
302 303
       """
303 304
       Feature: High strung
14  features/wire_protocol_table_diffing.feature
@@ -8,6 +8,7 @@ Feature: Wire protocol table diffing
8 8
     Given a standard Cucumber project directory structure
9 9
     And a file named "features/wired.feature" with:
10 10
       """
  11
+      Feature: Hello
11 12
         Scenario: Wired
12 13
           Given we're all wired
13 14
 
@@ -28,6 +29,7 @@ Feature: Wire protocol table diffing
28 29
       | ["diff_failed"]                                      | ["fail",{"message":"Not same", "exception":"DifferentException", "backtrace":["a.cs:12","b.cs:34"]}] |
29 30
       | ["end_scenario"]                                     | ["success"]                                                                                          |
30 31
     When I run cucumber -f progress --backtrace
  32
+    Then STDERR should be empty
31 33
     And it should fail with
32 34
       """
33 35
       F
@@ -37,10 +39,10 @@ Feature: Wire protocol table diffing
37 39
       Not same (DifferentException from localhost:54321)
38 40
       a.cs:12
39 41
       b.cs:34
40  
-      features/wired.feature:2:in `Given we're all wired'
  42
+      features/wired.feature:3:in `Given we're all wired'
41 43
 
42 44
       Failing Scenarios:
43  
-      cucumber features/wired.feature:1 # Scenario: Wired
  45
+      cucumber features/wired.feature:2 # Scenario: Wired
44 46
 
45 47
       1 scenario (1 failed)
46 48
       1 step (1 failed)
@@ -81,10 +83,10 @@ Feature: Wire protocol table diffing
81 83
       (::) failed steps (::)
82 84
 
83 85
       I wanted things to be different for us (Cucumber::WireSupport::WireException)
84  
-      features/wired.feature:2:in `Given we're all wired'
  86
+      features/wired.feature:3:in `Given we're all wired'
85 87
 
86 88
       Failing Scenarios:
87  
-      cucumber features/wired.feature:1 # Scenario: Wired
  89
+      cucumber features/wired.feature:2 # Scenario: Wired
88 90
 
89 91
       1 scenario (1 failed)
90 92
       1 step (1 failed)
@@ -106,10 +108,10 @@ Feature: Wire protocol table diffing
106 108
       (::) failed steps (::)
107 109
 
108 110
       Tables were not identical (Cucumber::Ast::Table::Different)
109  
-      features/wired.feature:2:in `Given we're all wired'
  111
+      features/wired.feature:3:in `Given we're all wired'
110 112
       
111 113
       Failing Scenarios:
112  
-      cucumber features/wired.feature:1 # Scenario: Wired
  114
+      cucumber features/wired.feature:2 # Scenario: Wired
113 115
 
114 116
       1 scenario (1 failed)
115 117
       1 step (1 failed)
2  lib/cucumber/formatter/junit.rb
@@ -74,7 +74,7 @@ def after_steps(steps)
74 74
         
75 75
         duration = Time.now - @steps_start
76 76
         if steps.failed?
77  
-          steps.each { |step| @output += "#{step.keyword} #{step.name}\n" }
  77
+          steps.each { |step| @output += "#{step.keyword}#{step.name}\n" }
78 78
           @output += "\nMessage:\n"
79 79
         end
80 80
         build_testcase(duration, steps.status, steps.exception)

0 notes on commit a20c5e2

Please sign in to comment.
Something went wrong with that request. Please try again.