UNPKG

1.04 kBPlain TextView Raw
1Feature: file handling
2
3 Scenario: hello_world file is readable
4 Given I am testing existing files
5 And I load test from hello_world.json
6 Then file hello_world.json exists
7 And variable test should exist
8 And $.hello in test should match world
9
10 Scenario: bye_bye_world file does not exist
11 Given I am testing missing files
12 Then file bye_bye_world.json does not exist
13
14 Scenario: create bye_bye_world file
15 Given I am testing creating files
16 And I load test from hello_world.json
17 And variable test should exist
18 And I set test.hello to earth
19 And $.hello in test should match earth
20 When I write test to bye_bye_world.json
21 Then file bye_bye_world.json exists
22
23 Scenario: remove bye_bye_world file
24 Given I am testing deleting files
25 And file bye_bye_world.json exists
26 And I load test from bye_bye_world.json
27 And variable test should exist
28 And $.hello in test should match earth
29 When I delete file bye_bye_world.json
30 Then file bye_bye_world.json does not exist
31