diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-03 06:16:07 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-03 06:16:07 +0000 |
commit | 0734368d45b349a6ab433c1d41f35a95ea58c9ec (patch) | |
tree | b69c6b84b9ce025d6f7afd92d734452757f4f365 /subplot.yaml | |
parent | e8082fef03bd04042dad3fb2d0513587c54874ab (diff) | |
parent | b9de4d5e810d07b679ad9ab9e46d58e4c76213cc (diff) | |
download | subplot-0734368d45b349a6ab433c1d41f35a95ea58c9ec.tar.gz |
Merge branch 'more-rust-subplots' into 'main'
codegen: Refuse to generate code if the specified template is not present
Closes #259
See merge request subplot/subplot!242
Diffstat (limited to 'subplot.yaml')
-rw-r--r-- | subplot.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/subplot.yaml b/subplot.yaml index b865d83..12a9fae 100644 --- a/subplot.yaml +++ b/subplot.yaml @@ -3,60 +3,83 @@ python: function: install_subplot cleanup: uninstall_subplot + rust: + function: install_subplot + cleanup: uninstall_subplot - then: scenario "{name:text}" was run impl: python: function: scenario_was_run + rust: + function: scenario_was_run - then: scenario "{name:text}" was not run impl: python: function: scenario_was_not_run + rust: + function: scenario_was_not_run - then: step "(?P<keyword>given|when|then) (?P<name>.+)" was run impl: python: function: step_was_run + rust: + 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>.+)" impl: python: function: step_was_run_and_then + rust: + 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>.+)" impl: python: function: cleanup_was_run + rust: + function: cleanup_was_run regex: true - then: cleanup for "(?P<keyword>given|when|then) (?P<name>.+)" was not run impl: python: function: cleanup_was_not_run + rust: + function: cleanup_was_not_run regex: true - then: JSON output matches {filename} impl: python: function: json_output_matches_file + rust: + function: json_output_matches_file - then: "{filename} does not end in a newline" impl: python: function: file_ends_in_zero_newlines + rust: + function: file_ends_in_zero_newlines - then: "{filename} ends in one newline" impl: python: function: file_ends_in_one_newline + rust: + function: file_ends_in_one_newline - then: "{filename} ends in two newlines" impl: python: function: file_ends_in_two_newlines + rust: + function: file_ends_in_two_newlines # In order to cope with low granularity filesystems, sometimes we need to wait # for things to happen @@ -64,6 +87,8 @@ impl: python: function: sleep_seconds + rust: + function: sleep_seconds regex: true types: delay: uint @@ -74,13 +99,19 @@ impl: python: function: do_nothing + rust: + function: do_nothing - when: I do the required actions impl: python: function: do_nothing + rust: + function: do_nothing - then: the desired outcome is achieved impl: python: function: do_nothing + rust: + function: do_nothing |