Created
September 16, 2009 16:00
-
-
Save msassak/188120 to your computer and use it in GitHub Desktop.
Possible Gherkin error scenarios
This file contains 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
# It's difficult to decide what is invalid Gherkin, so I made this gist to try and figure it out | |
# Empty feature | |
Feature: | |
# Feature with GWT in desc | |
Feature: Suspicious | |
Given this is bad form | |
Whenever I do this | |
Then you should be suspicious because | |
This is really a feature description | |
# Unclosed pystring | |
Scenario: Something something | |
Given I have this awesome string | |
""" | |
Blah blah blah !!!@$#@$%#$#@ | |
Oh hello""" Garbagecd789cdsnkjdqnjke21 | |
""" | |
# Unclosed table (we know this is bad) | |
Examples: | |
| foos | bars | whoozits | | |
| f | b | w | | |
| f1 | b2 | | |
| f2 | b2 | b3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment