-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration tests and asser that stdout / stderr contain string
- Loading branch information
1 parent
b46bd9b
commit ecde616
Showing
7 changed files
with
114 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
tests: | ||
it should fail: | ||
command: /bin/bash invalid | ||
stderr: "/bin/bash: invalid: No such file or directory" | ||
exit-code: 127 | ||
it should print hello world: | ||
command: echo hello world | ||
stdout: hello world | ||
exit-code: 0 | ||
it should exit with error code: | ||
command: exit 1 | ||
exit-code: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
tests: | ||
it should fail: | ||
command: /bin/bash invalid | ||
stderr: "/bin/bash: invalid: No such file or directory" | ||
exit-code: 127 | ||
|
||
it should exit with error code: | ||
command: exit 1 | ||
exit-code: 1 | ||
|
||
it should assert stdout: | ||
command: echo hello | ||
stdout: hello | ||
exit-code: 0 | ||
|
||
it should assert stderr: | ||
command: '>&2 echo "error"' | ||
stderr: error | ||
exit-code: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tests: | ||
it will fail: | ||
command: exit 1 | ||
exit-code: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters