Created
June 1, 2010 19:18
-
-
Save jarib/421351 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // cucumber-json | |
| { | |
| "features": | |
| [ | |
| " Scenario: Delayed announcements feature\n When I run cucumber --format pretty features/f.feature\n Then STDERR should be empty\n And the output should contain\n \"\"\"\n Feature: F\n\n Scenario: S # features/f.feature:3\n Given I use announce with text \"Ann\" # features/step_definitions/steps.rb:1\n Ann\n And this step works # features/step_definitions/steps.rb:21\n\n Scenario: S2 # features/f.feature:7\n Given I use multiple announces # features/step_definitions/steps.rb:5\n Multiple\n Announce\n Me\n And this step works # features/step_definitions/steps.rb:21\n\n Scenario Outline: S3 # features/f.feature:11\n Given I use announcement <ann> in line <line> # features/f.feature:12\n\n Examples: \n | line | ann |\n | 1 | anno1 |\n | 2 | anno2 |\n | 3 | anno3 |\n\n Scenario: S4 # features/f.feature:20\n Given I use announce and step fails # features/step_definitions/steps.rb:16\n Announce with fail\n (RuntimeError)\n ./features/step_definitions/steps.rb:18:in `/^I use announce and step fails$/'\n features/f.feature:21:in `Given I use announce and step fails'\n And this step works # features/step_definitions/steps.rb:21\n\n Scenario Outline: s5 # features/f.feature:24\n Given I use announcement <ann> in line <line> with result <result> # features/step_definitions/steps.rb:10\n\n Examples: \n | line | ann | result |\n | 1 | anno1 | fail | Line: 1: anno1\n (RuntimeError)\n ./features/step_definitions/steps.rb:13:in `/^I use announcement (.+) in line (.+) (?:with result (.+))$/'\n features/f.feature:25:in `Given I use announcement <ann> in line <line> with result <result>'\n | 2 | anno2 | pass | Line: 2: anno2\n \"\"\"\n", | |
| " Scenario: Non-delayed announcements feature (progress formatter)\n When I run cucumber --format progress features/f.feature\n Then the output should contain\n \"\"\"\n Ann\n ..\n Multiple\n\n Announce\n Me\n ..-UUUUUU\n Announce with fail\n F--\n Line: 1: anno1\n FFF\n Line: 2: anno2\n ...\n \"\"\"\n", | |
| " Scenario: announce world\n When I run cucumber --format progress features/announce_world.feature\n Then the output should contain\n \"\"\"\n WORLD:\n Object\n\n Spec::Matchers\n Cucumber::RbSupport::RbWorld\n \"\"\"\n" | |
| ], | |
| "failing_features": | |
| [ | |
| ], | |
| "status_counts": | |
| { | |
| "passed":23 | |
| } | |
| } | |
| // mine | |
| { | |
| "features": [ | |
| { | |
| "file": "features/announce.feature", | |
| "name": "Delayed announcement", | |
| "tags": [ | |
| ], | |
| "steps": [ | |
| { | |
| "status": "passed", | |
| "name": "Given a standard Cucumber project directory structure", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:8" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/step_definitions/steps.rb\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/f.feature\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/announce_world.feature\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| } | |
| ], | |
| "elements": [ | |
| { | |
| "tags": [ | |
| ], | |
| "name": "Delayed announcements feature", | |
| "steps": [ | |
| { | |
| "status": "passed", | |
| "name": "Given a standard Cucumber project directory structure", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:8" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/step_definitions/steps.rb\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/f.feature\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/announce_world.feature\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "When I run cucumber --format pretty features/f.feature", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:52" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "Then STDERR should be empty", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:122" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And the output should contain", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:75" | |
| } | |
| ] | |
| }, | |
| { | |
| "tags": [ | |
| ], | |
| "name": "Non-delayed announcements feature (progress formatter)", | |
| "steps": [ | |
| { | |
| "status": "passed", | |
| "name": "Given a standard Cucumber project directory structure", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:8" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/step_definitions/steps.rb\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/f.feature\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/announce_world.feature\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "When I run cucumber --format progress features/f.feature", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:52" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "Then the output should contain", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:75" | |
| } | |
| ] | |
| }, | |
| { | |
| "tags": [ | |
| "@rspec1" | |
| ], | |
| "name": "announce world", | |
| "steps": [ | |
| { | |
| "status": "passed", | |
| "name": "Given a standard Cucumber project directory structure", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:8" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/step_definitions/steps.rb\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/f.feature\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "And a file named \"features/announce_world.feature\" with:", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:28" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "When I run cucumber --format progress features/announce_world.feature", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:52" | |
| }, | |
| { | |
| "status": "passed", | |
| "name": "Then the output should contain", | |
| "file_colon_line": "features/step_definitions/cucumber_steps.rb:75" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment