STAREAST 2022 Concurrent Session : Overcoming Gherkin Anti-patterns for Manageable, Durable, and Valuable Test Code

SEE PRICING & PACKAGES

Wednesday, April 27, 2022 - 2:45pm to 3:45pm

Overcoming Gherkin Anti-patterns for Manageable, Durable, and Valuable Test Code

Gherkin holds the promise of being an easy to implement and easy to understand tool for getting teams to be Test Driven. And it should be. But in our experience working with and coaching many teams, we have found significant differences between theory and practice. Too often, Gherkin scenarios result in test code that is difficult to understand, difficult to maintain, and not valuable. We will go over the following anti-patterns and discuss strategies to overcome them:

  • Scenarios that focus on UI implementation rather than expected behavior
  • Scenarios that are too long and too complex
  • Misunderstanding of the Gherkin keywords
  • Not treating test code with the same level of rigor and discipline you would the rest of your code

Finally, we will discuss a method for determining the relative priorities of writing certain types of tests to determine if they deliver their expected value. After this session, you will be able to go back to your teams with some practical lessons for refactoring your test code so that it is manageable, durable, and valuable.

LitheSpeed

George Lively has over twenty years of experience in Agile. He began with Extreme Programming (XP), using Agile Engineering practices like Test Driven Development. He has been a practitioner, coach, and trainer, working in small, medium, and large organizations in a variety of industries. For the last three years George has been a Senior Agile Coach at LitheSpeed. His day-to-day work with actual teams continues to inform his real world approach to solving big testing problems. Professional certifications: SPC 5, CSM Enabled to teach ICP-TST and a variety of SAFe classes, including SAFe DevOps.