summaryrefslogtreecommitdiff
path: root/subplot.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-02-26 07:46:24 +0200
committerLars Wirzenius <liw@liw.fi>2020-02-26 09:25:08 +0200
commit403353fee1719301c9f64a3766bc6f3b198b0f34 (patch)
treebadf6e9a6e8a1bfe5bd86ddc622e8e8d9446e5a7 /subplot.yaml
parentd22b5295981cfb80de6117fe73f361eb947d2ba9 (diff)
downloadsubplot-403353fee1719301c9f64a3766bc6f3b198b0f34.tar.gz
Add: scenarios for testing document date
Diffstat (limited to 'subplot.yaml')
-rw-r--r--subplot.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/subplot.yaml b/subplot.yaml
index e309d78..777ac92 100644
--- a/subplot.yaml
+++ b/subplot.yaml
@@ -1,9 +1,15 @@
- given: file (?P<filename>\S+)
function: create_file
+- given: file (?P<filename>\S+) has modification time (?P<y>\d+)-(?P<mon>\d+)-(?P<d>\d+) (?P<h>\d+):(?P<min>\d+):(?P<s>\d+)
+ function: touch_file
+
- when: I run sp-docgen (?P<md>\S+) -o (?P<output>\S+)
function: run_docgen
+- when: I run sp-docgen (?P<md>\S+) -o (?P<output>\S+) --date=(?P<date>\S+)
+ function: run_docgen_with_date
+
- when: I try to run sp-docgen (?P<md>\S+) -o (?P<output>\S+)
function: try_docgen
@@ -28,6 +34,9 @@
- then: file (?P<filename>\S+) matches /(?P<regex>.+)/
function: file_matches
+- then: file (?P<filename>\S+) contains "(?P<pattern>.+)"
+ function: file_contains
+
- then: output matches /(?P<pattern>.+)/
function: stdout_matches