diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-05-16 10:04:53 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-05-17 12:11:02 +0300 |
commit | f276c028dd4869a97129140cea28f02f3889ac47 (patch) | |
tree | f354dde229b1cd41e75e3aaa76c9487766bce7c6 /subplot.yaml | |
parent | 0402565f12623fb56da54e9a9a764edb39129186 (diff) | |
download | subplot-f276c028dd4869a97129140cea28f02f3889ac47.tar.gz |
feat(subplot.md): add acceptance criteria for cleanup functionality
Add acceptance checks for the cleanup functionality, for Python and
Bash templates.
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 |