In Behavior-Driven Development, Gherkin is a specification language for defining behaviors. Gherkin scenarios can easily be automated into test cases. There are many points to writing good Gherkin, but to keep things simple, I like to focus on four major rules:
- Gherkin’s Golden Rule
- The Cardinal Rule of BDD
- The Unique Example Rule
- The Good Grammar Rule
Check out my TechBeacon article to learn about these rules in depth!