summaryrefslogtreecommitdiff
path: root/subplot.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-08 11:00:14 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-08 11:01:18 +0300
commit4af1ba54ed096e64c61dfc12ec1138a9a0006481 (patch)
treee88aabf3062fb5c9c7dc7f7eb839de00bba795fe /subplot.yaml
parentd24db0031b097d7cd4240a02956995703aa4d48f (diff)
downloadsubplot-4af1ba54ed096e64c61dfc12ec1138a9a0006481.tar.gz
Add: scenarios for test programs running only chosen scenarios
Diffstat (limited to 'subplot.yaml')
-rw-r--r--subplot.yaml15
1 files changed, 14 insertions, 1 deletions
diff --git a/subplot.yaml b/subplot.yaml
index be59205..76fef03 100644
--- a/subplot.yaml
+++ b/subplot.yaml
@@ -18,10 +18,19 @@
function: try_docgen
- when: I run sp-codegen --run {filename} -o test.py
+ 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
- function: try_codegen
+ function: try_codegen_and_program
+
+- when: I run python3 {testprog} {pattern}
+ function: run_python_test_program
+
+- when: I run bash {testprog} {pattern}
+ function: run_bash_test_program
- when: I run sp-meta {filename}
function: run_meta
@@ -63,6 +72,10 @@
function: scenario_was_run
regex: true
+- then: scenario "(?P<name>.+)" was not run
+ function: scenario_was_not_run
+ regex: true
+
- then: step "(?P<keyword>given|when|then) (?P<name>.+)" was run
function: step_was_run
regex: true