diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-08-14 09:49:17 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-09-07 17:32:20 +0100 |
commit | 4436b7ee28b0318a96d98833d85d712c8a18850d (patch) | |
tree | ca8c124284b7585b310fa4340d6a63be498ccba6 /subplot.yaml | |
parent | 70461d3af84d1f5363df67f2f50f10b9dce86812 (diff) | |
download | subplot-4436b7ee28b0318a96d98833d85d712c8a18850d.tar.gz |
bindings: Parse polyglot bindings
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplot.yaml')
-rw-r--r-- | subplot.yaml | 63 |
1 files changed, 46 insertions, 17 deletions
diff --git a/subplot.yaml b/subplot.yaml index c7c0c4e..229cc7d 100644 --- a/subplot.yaml +++ b/subplot.yaml @@ -1,48 +1,71 @@ - given: an installed subplot - function: install_subplot - cleanup: uninstall_subplot + impl: + python: + function: install_subplot + cleanup: uninstall_subplot - then: scenario "(?P<name>.+)" was run - function: scenario_was_run + impl: + python: + function: scenario_was_run regex: true - then: scenario "(?P<name>.+)" was not run - function: scenario_was_not_run + impl: + python: + function: scenario_was_not_run regex: true - then: step "(?P<keyword>given|when|then) (?P<name>.+)" was run - function: step_was_run + impl: + python: + function: step_was_run regex: true - then: step "(?P<keyword1>given|when|then) (?P<name1>.+)" was run, and then step "(?P<keyword2>given|when|then) (?P<name2>.+)" - function: step_was_run_and_then + impl: + python: + function: step_was_run_and_then regex: true - then: cleanup for "(?P<keyword1>given|when|then) (?P<name1>.+)" was run, and then for "(?P<keyword2>given|when|then) (?P<name2>.+)" - function: cleanup_was_run + impl: + python: + function: cleanup_was_run regex: true - then: cleanup for "(?P<keyword>given|when|then) (?P<name>.+)" was not run - function: cleanup_was_not_run + impl: + python: + function: cleanup_was_not_run regex: true - - then: JSON output matches {filename} - function: json_output_matches_file + impl: + python: + function: json_output_matches_file - then: "{filename} does not end in a newline" - function: file_ends_in_zero_newlines + impl: + python: + function: file_ends_in_zero_newlines - then: "{filename} ends in one newline" - function: file_ends_in_one_newline + impl: + python: + function: file_ends_in_one_newline - then: "{filename} ends in two newlines" - function: file_ends_in_two_newlines + impl: + python: + function: file_ends_in_two_newlines # In order to cope with low granularity filesystems, sometimes we need to wait # for things to happen - when: I wait until (?P<delay>\d+) seconds? has passed - function: sleep_seconds + impl: + python: + function: sleep_seconds regex: true types: delay: uint @@ -50,10 +73,16 @@ # The following are purely descriptive steps and are not used to test anything - given: the necessary starting conditions - function: do_nothing + impl: + python: + function: do_nothing - when: I do the required actions - function: do_nothing + impl: + python: + function: do_nothing - then: the desired outcome is achieved - function: do_nothing + impl: + python: + function: do_nothing |