-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show result summary at the end
- Loading branch information
1 parent
d31c0fc
commit 92bf5b0
Showing
11 changed files
with
120 additions
and
83 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
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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
source "$HELPERS" | ||
|
||
test "it allows a list of commands for the same task (on init)" | ||
|
||
echo " | ||
- name: run complex command | ||
run: ['echo first', 'exit 1', 'cat unknow', 'echo complex | sed s/complex/third/g'] | ||
change: \"$WORKDIR/**\" | ||
run_on_init: true | ||
" > $WORKDIR/.oninit.yaml | ||
|
||
$TEST_DIR/funzzy --config $WORKDIR/.oninit.yaml > $WORKDIR/output.txt & | ||
FUNZZY_PID=$! | ||
|
||
assert_file_contains "$WORKDIR/output.txt" "Watching..." | ||
assert_file_contains "$WORKDIR/output.txt" "Funzzy result" | ||
assert_file_contains "$WORKDIR/output.txt" "Failed tasks: 2" | ||
assert_file_contains "$WORKDIR/output.txt" "Command exit 1 has failed with exit status: 1" | ||
assert_file_contains "$WORKDIR/output.txt" "Command cat unknow has failed with exit status: 1" | ||
|
||
cleanup |