examples/commander.yaml
tests:
it should print hello world:
command: echo hello world
stdout: hello world
exit-code: 0
it should validate exit code:
command: exit 1
exit-code: 1
echo hello: #Use title as command
stdout:
exactly: hello
line-count: 1
lines:
1: hello
exit-code: 0
it should fail:
command: invalid
stderr: "/bin/sh: 1: command invalid: not found"
exit-code: 127
it should skip:
command: echo "I should be skipped"
stdout: I should be skipped
skip: true
it should match file output:
command: printf "line one\nline two"
stdout:
file: _fixtures/output.txt