summaryrefslogtreecommitdiff
path: root/echo.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-06-01 22:00:29 +0300
committerLars Wirzenius <liw@liw.fi>2019-06-01 22:00:29 +0300
commitf018f576993c86a73f0a730ffa56e67e328c7aaf (patch)
tree4e1f40faf8bc1e8efed27925382521f01977b10c /echo.yaml
parent8d603a5d369178a04e099acd93de450ff351022d (diff)
downloadfable-poc-f018f576993c86a73f0a730ffa56e67e328c7aaf.tar.gz
Add: a second scenario
Diffstat (limited to 'echo.yaml')
-rw-r--r--echo.yaml8
1 files changed, 7 insertions, 1 deletions
diff --git a/echo.yaml b/echo.yaml
index 521ca25..6937d3d 100644
--- a/echo.yaml
+++ b/echo.yaml
@@ -1,11 +1,17 @@
- when: user runs echo without arguments
function: run_echo_without_args
- - then: exit code is (?P<exit_code>\d+)
+- when: user runs echo with arguments (?P<args>.+)
+ function: run_echo_with_args
+
+- then: exit code is (?P<exit_code>\d+)
function: exit_code_is_zero
- then: standard output contains a newline
function: stdout_is_a_newline
+- then: standard output contains "(?P<text>.*)"
+ function: stdout_is_text
+
- then: standard error is empty
function: stderr_is_empty