August 2018
Intermediate to advanced
416 pages
12h 37m
English
We can look at a very simple example of an acceptance test in my repository called cucumber-examples (https://github.com/jbelmont/cucumber-examples), which has a Gherkin file that checks that our acceptance criteria is met for a simple calculator program:
# features/simple_addition.feature
Feature: Simple Addition of Numbers
In order to do simple math as a developer I want to add numbers
Scenario: Easy Math Problem
Given a list of numbers set to []
When I add the numbers together by []
Then I get a larger result that is the sum of the numbers
Notice here that the Gherkin syntax is human-readable and is meant to be read as a list of declarations for the new functionality. Here, we state that we want to be able to do ...
Read now
Unlock full access