features/cucumber_cli.feature in cucumber-0.3.9 vs features/cucumber_cli.feature in cucumber-0.3.10

- old
+ new

@@ -4,10 +4,11 @@ Scenario: Run single scenario with missing step definition When I run cucumber -q features/sample.feature:5 Then it should pass with """ + # Feature comment @one Feature: Sample @two @three Scenario: Missing @@ -20,31 +21,34 @@ Scenario: Fail with --strict When I run cucumber -q features/sample.feature:5 --strict Then it should fail with """ + # Feature comment @one Feature: Sample @two @three Scenario: Missing Given missing Undefined step: "missing" (Cucumber::Undefined) - features/sample.feature:6:in `Given missing' + features/sample.feature:7:in `Given missing' 1 scenario (1 undefined) 1 step (1 undefined) """ Scenario: Succeed with --strict - When I run cucumber -q features/sample.feature:9 --strict + When I run cucumber -q features/sample.feature:10 --strict Then it should pass with """ + # Feature comment @one Feature: Sample + # Scenario comment @three Scenario: Passing Given passing | a | b | | c | d | @@ -54,13 +58,14 @@ """ @mri186 Scenario: Specify 2 line numbers where one is a tag - When I run cucumber -q features/sample.feature:5:14 + When I run cucumber -q features/sample.feature:5:16 Then it should fail with """ + # Feature comment @one Feature: Sample @two @three Scenario: Missing @@ -73,21 +78,22 @@ hello \"\"\" FAIL (RuntimeError) ./features/step_definitions/sample_steps.rb:2:in `flunker' ./features/step_definitions/sample_steps.rb:9:in `/^failing$/' - features/sample.feature:16:in `Given failing' + features/sample.feature:18:in `Given failing' 2 scenarios (1 failed, 1 undefined) 2 steps (1 failed, 1 undefined) """ Scenario: Require missing step definition from elsewhere When I run cucumber -q -r ../../features/step_definitions/extra_steps.rb features/sample.feature:5 Then it should pass with """ + # Feature comment @one Feature: Sample @two @three Scenario: Missing @@ -100,13 +106,15 @@ Scenario: Specify the line number of a row When I run cucumber -q features/sample.feature:12 Then it should pass with """ + # Feature comment @one Feature: Sample + # Scenario comment @three Scenario: Passing Given passing | a | b | | c | d | @@ -126,11 +134,11 @@ (::) failed steps (::) FAIL (RuntimeError) ./features/step_definitions/sample_steps.rb:2:in `flunker' ./features/step_definitions/sample_steps.rb:9:in `/^failing$/' - features/sample.feature:16:in `Given failing' + features/sample.feature:18:in `Given failing' 3 scenarios (1 failed, 1 undefined, 1 passed) 3 steps (1 failed, 1 undefined, 1 passed) """ @@ -236,17 +244,19 @@ Examples: Only passing | state | other_state | | passing | passing | + # Feature comment @one Feature: Sample @two @three Scenario: Missing Given missing + # Scenario comment @three Scenario: Passing Given passing | a | b | | c | d | @@ -386,17 +396,19 @@ Scenario: Run with a tag that exists on 2 scenarios When I run cucumber -q features --tags three Then it should pass with """ + # Feature comment @one Feature: Sample @two @three Scenario: Missing Given missing + # Scenario comment @three Scenario: Passing Given passing | a | b | | c | d | @@ -409,17 +421,19 @@ @mri186 Scenario: Run with a tag that exists on 1 feature When I run cucumber -q features --tags one Then it should fail with """ + # Feature comment @one Feature: Sample @two @three Scenario: Missing Given missing + # Scenario comment @three Scenario: Passing Given passing | a | b | | c | d | @@ -431,28 +445,30 @@ hello \"\"\" FAIL (RuntimeError) ./features/step_definitions/sample_steps.rb:2:in `flunker' ./features/step_definitions/sample_steps.rb:9:in `/^failing$/' - features/sample.feature:16:in `Given failing' + features/sample.feature:18:in `Given failing' 3 scenarios (1 failed, 1 undefined, 1 passed) 3 steps (1 failed, 1 undefined, 1 passed) """ Scenario: Run with a negative tag When I run cucumber -q features/sample.feature --dry-run -t ~four Then it should pass with """ + # Feature comment @one Feature: Sample @two @three Scenario: Missing Given missing + # Scenario comment @three Scenario: Passing Given passing | a | b | | c | d | @@ -464,16 +480,18 @@ Scenario: Reformat files with --autoformat When I run cucumber --autoformat tmp/formatted features Then "examples/self_test/tmp/formatted/features/sample.feature" should contain """ + # Feature comment @one Feature: Sample @two @three Scenario: Missing Given missing + # Scenario comment @three Scenario: Passing Given passing | a | b | | c | d |