summaryrefslogtreecommitdiff
path: root/subplot.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'subplot.yaml')
-rw-r--r--subplot.yaml16
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