You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,9 @@ Feature file sample:
55
55
56
56
Feature: Counter
57
57
58
+
Background:
59
+
Given the answer is {42}
60
+
58
61
Scenario: Initial counter value is 0
59
62
Given the app is running
60
63
Then I see {0} text
@@ -65,6 +68,8 @@ Feature: Counter
65
68
Then I see {1} text
66
69
```
67
70
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
+
68
73
Each feature file must have one or more `Feature:`s. Features become test groups in Flutter tests.
69
74
70
75
Each feature group must have one or more `Scenario:`s (or `Example:`s). Scenario become widget tests.
0 commit comments