diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2020-05-17 09:42:46 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2020-05-17 09:42:46 +0000 |
commit | 6d77fdedd7fd0f832a543b7eb530ae15984aa377 (patch) | |
tree | f354dde229b1cd41e75e3aaa76c9487766bce7c6 /subplot.yaml | |
parent | 5db9eef3e02f7e3b344becd08c74a99fb274f2ed (diff) | |
parent | f276c028dd4869a97129140cea28f02f3889ac47 (diff) | |
download | subplot-6d77fdedd7fd0f832a543b7eb530ae15984aa377.tar.gz |
Merge branch 'finally2' into 'master'
Add cleanup support to scenario steps
Closes #51
See merge request larswirzenius/subplot!42
Diffstat (limited to 'subplot.yaml')
-rw-r--r-- | subplot.yaml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/subplot.yaml b/subplot.yaml index 607e361..8d4187f 100644 --- a/subplot.yaml +++ b/subplot.yaml @@ -17,13 +17,13 @@ - when: I try to run sp-docgen {md} -o {output} function: try_docgen -- when: I run sp-codegen --run {filename} -o test.py +- when: I run sp-codegen --run {filename} -o {testprog} function: run_codegen_and_program - when: I run sp-codegen {filename} -o {testprog} function: run_codegen -- when: I try to run sp-codegen --run {filename} -o test.py +- when: I try to run sp-codegen --run {filename} -o {testprog} function: try_codegen_and_program - when: I run python3 {testprog} {pattern} @@ -84,6 +84,18 @@ 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 + 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 + regex: true + +- then: cleanup for "(?P<keyword>given|when|then) (?P<name>.+)" was not run + function: cleanup_was_not_run + regex: true + - then: program finished successfully function: exit_code_zero |