Skip to content

Instantly share code, notes, and snippets.

@msassak
Created September 16, 2009 16:00
Show Gist options
  • Save msassak/188120 to your computer and use it in GitHub Desktop.
Save msassak/188120 to your computer and use it in GitHub Desktop.
Possible Gherkin error scenarios
# 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