Skip to content

Instantly share code, notes, and snippets.

@barneywilliams
Created May 23, 2012 05:45
Show Gist options
  • Save barneywilliams/2773442 to your computer and use it in GitHub Desktop.
Save barneywilliams/2773442 to your computer and use it in GitHub Desktop.
Cucumber-Cpp Example
Feature: Division
In order to avoid silly mistakes
Cashiers must be able to calculate a fraction
Scenario: Regular numbers # division.feature:6
Given I have entered 3 into the calculator # CalculatorSteps.cpp:11
And I have entered 2 into the calculator # CalculatorSteps.cpp:11
When I press divide # CalculatorSteps.cpp:22
Then the result should be 1.5 on the screen # CalculatorSteps.cpp:27
4 scenarios (4 passed)
16 steps (16 passed)
0m0.073s
@safarista
Copy link

There are a lot of cucumber test tutorials around. But one thing they all fail to start with or to remember is mentioning or showing the "Directory Structure" of there tutorials. This one too fails in the same manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment