summaryrefslogtreecommitdiff
path: root/examples/echo/echo.yaml
blob: 7be6e969f27afee7e49dd6a354749cc3d8da6cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- when: user runs echo without arguments
  function: run_echo_without_args

- when: user runs echo with arguments (?P<args>.+)
  function: run_echo_with_args
  regex: true

- then: exit code is (?P<exit_code>\d+)
  function: exit_code_is
  regex: true

- then: standard output contains a newline
  function: stdout_is_a_newline

- then: standard output contains "(?P<text>.*)"
  function: stdout_is_text
  regex: true

- then: standard error is empty
  function: stderr_is_empty