32. 使用 Gherkin 語法,依不同目的,進行各情境的規格細節的描述。而這些情境可視為 Live
Document。
1. 合作
2. 低投入
3. 調和機制產生的可靠性
4. 富有洞察力
5. 針對目標受眾
符合 Live Document 核心精神
Feature: Guess the word
# The first example has two steps
Scenario: Maker starts a game
When the Maker starts a game
Then the Maker waits for a Breaker to join
# The second example has three steps
Scenario: Breaker joins a game
Given the Maker has started a game with the
word "silky"
When the Breaker joins the Maker's game
Then the Breaker must guess a word with
5 characters
Gherkin Syntax
Garkin