Skip to content

Instantly share code, notes, and snippets.

@spenserpothier
Last active August 16, 2017 20:24
Show Gist options
  • Save spenserpothier/3d1cb9f1ad0ccc9bcc95 to your computer and use it in GitHub Desktop.
Save spenserpothier/3d1cb9f1ad0ccc9bcc95 to your computer and use it in GitHub Desktop.
Example cucumber output
$ cucumber
Using the default profile...
Feature: Manage Articles
In order to make a blog
As an author
I want to create and manage Articles
Scenario: Articles List # features/manage_articles.feature:6
Given I have articles titled Pizza, Breadsticks # features/step_definitions/article_steps.rb:1
When I go to the list of articles # features/step_definitions/web_steps.rb:48
Then I should see "Pizza" # features/step_definitions/web_steps.rb:105
And I should see "Breadsticks" # features/step_definitions/web_steps.rb:105
Scenario: Create Valid Article # features/manage_articles.feature:12
Given I have no articles # features/step_definitions/article_steps.rb:7
And I am on the list of articles # features/step_definitions/web_steps.rb:44
When I follow "New Article" # features/step_definitions/web_steps.rb:56
And I fill in "Title" with "Spuds" # features/step_definitions/web_steps.rb:60
And I fill in "Content" with "Delicious potato wedges!" # features/step_definitions/web_steps.rb:60
And I press "Create" # features/step_definitions/web_steps.rb:52
Then I should see "New article created." # features/step_definitions/web_steps.rb:105
And I should see "Spuds" # features/step_definitions/web_steps.rb:105
And I should see "Delicious potato wedges!" # features/step_definitions/web_steps.rb:105
And I should have 1 article # features/step_definitions/article_steps.rb:11
2 scenarios (2 passed)
14 steps (14 passed)
0m0.249s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment