summaryrefslogtreecommitdiff
path: root/subplot.yaml
blob: 8d4187fc92c185d431fa7b28e1b8e2d8e164090b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
- given: file {filename}
  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
  regex: true

- when: I remember the metadata for {filename}
  function: remember_metadata

- when: I run sp-docgen {md} -o {output}
  function: run_docgen

- when: I run sp-docgen {md} -o {output} --date={date}
  function: run_docgen_with_date

- when: I try to run sp-docgen {md} -o {output}
  function: try_docgen

- 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 {testprog}
  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

- when: I touch {filename}
  function: update_mtime

- when: I run pandoc --filter sp-filter {filename} -o {output}
  function: run_pandoc_with_filter

- then: exit code is non-zero
  function: exit_code_nonzero

- then: file {filename} exists
  function: file_exists

- then: file {filename} does not exist
  function: file_does_not_exist

- then: file (?P<filename>\S+) matches /(?P<regex>.+)/
  function: file_matches
  regex: true

- then: file (?P<filename>\S+) contains "(?P<pattern>.+)"
  function: file_contains
  regex: true

- then: "{filename} has the same metadata as before"
  function: has_same_metadata_as_remembered

- then: "{filename} has changed from before"
  function: has_diff_metadata_than_remembered

- then: output matches /(?P<pattern>.+)/
  function: stdout_matches
  regex: true

- then: stderr matches /(?P<pattern>.+)/
  function: stderr_matches
  regex: true

- then: scenario "(?P<name>.+)" was run
  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

- 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

- then: only files (?P<filenames>.+) exist
  function: only_these_files_exist
  regex: true