summaryrefslogtreecommitdiff
path: root/subplot.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'subplot.yaml')
-rw-r--r--subplot.yaml28
1 files changed, 16 insertions, 12 deletions
diff --git a/subplot.yaml b/subplot.yaml
index 12a9fae..1c384eb 100644
--- a/subplot.yaml
+++ b/subplot.yaml
@@ -28,6 +28,9 @@
rust:
function: step_was_run
regex: true
+ types:
+ keyword: text
+ name: text
- then: step "(?P<keyword1>given|when|then) (?P<name1>.+)" was run, and then step "(?P<keyword2>given|when|then) (?P<name2>.+)"
impl:
@@ -36,6 +39,11 @@
rust:
function: step_was_run_and_then
regex: true
+ types:
+ keyword1: text
+ keyword2: text
+ name1: text
+ name2: text
- then: cleanup for "(?P<keyword1>given|when|then) (?P<name1>.+)" was run, and then for "(?P<keyword2>given|when|then) (?P<name2>.+)"
impl:
@@ -44,6 +52,11 @@
rust:
function: cleanup_was_run
regex: true
+ types:
+ keyword1: text
+ keyword2: text
+ name1: text
+ name2: text
- then: cleanup for "(?P<keyword>given|when|then) (?P<name>.+)" was not run
impl:
@@ -52,6 +65,9 @@
rust:
function: cleanup_was_not_run
regex: true
+ types:
+ keyword: text
+ name: text
- then: JSON output matches {filename}
impl:
@@ -81,18 +97,6 @@
rust:
function: file_ends_in_two_newlines
-# In order to cope with low granularity filesystems, sometimes we need to wait
-# for things to happen
-- when: I wait until (?P<delay>\d+) seconds? has passed
- impl:
- python:
- function: sleep_seconds
- rust:
- function: sleep_seconds
- regex: true
- types:
- delay: uint
-
# The following are purely descriptive steps and are not used to test anything
- given: the necessary starting conditions