Skip to content

Commit c2dc353

Browse files
committed
Update README.md
1 parent bedf085 commit c2dc353

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Feature file sample:
5555
5656
Feature: Counter
5757
58+
Background:
59+
Given the answer is {42}
60+
5861
Scenario: Initial counter value is 0
5962
Given the app is running
6063
Then I see {0} text
@@ -65,6 +68,8 @@ Feature: Counter
6568
Then I see {1} text
6669
```
6770

71+
`Backround` keyword is optional. A Background allows you to add some context to the scenarios that follow it. It can contain one or more Given steps, which are run before each scenario.
72+
6873
Each feature file must have one or more `Feature:`s. Features become test groups in Flutter tests.
6974

7075
Each feature group must have one or more `Scenario:`s (or `Example:`s). Scenario become widget tests.

0 commit comments

Comments
 (0)