Skip to content

Commit 5caa620

Browse files
committed
Update README
1 parent efe7db5 commit 5caa620

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Feature: Counter
5858
Background:
5959
Given the answer is {42}
6060
61+
After:
62+
Then clean up after the test
63+
6164
Scenario: Initial counter value is 0
6265
Given the app is running
6366
Then I see {'0'} text
@@ -68,7 +71,7 @@ Feature: Counter
6871
Then I see {'1'} text
6972
```
7073

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.
74+
`Backround` and `After` keywords are 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. An `After` scenarion run even if a test fails, to ensure that it has a chance to clean up after itself. Most probably you don't need to use this keyword.
7275

7376
Each feature file must have one or more `Feature:`s. Features become test groups in Flutter tests.
7477

0 commit comments

Comments
 (0)