Skip to content

Commit

Permalink
feat: log the expected output if tests failed
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Aug 25, 2024
1 parent 697d747 commit d8ef4a3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/herokuish.bash
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ herokuish-test() {
echo -e "$output"
if [[ "$output" != "$expected" ]]; then
echo "::: TEST FAILED :::"
echo "::: EXPECTED: $expected :::"
exit 2
fi
fi
Expand Down Expand Up @@ -144,9 +145,9 @@ main() {
cmd-export procfile-parse

case "$SELF" in
/start) procfile-start "$@" ;;
/exec) procfile-exec "$@" ;;
/build) buildpack-build ;;
*) cmd-ns "" "$@" ;;
/start) procfile-start "$@" ;;
/exec) procfile-exec "$@" ;;
/build) buildpack-build ;;
*) cmd-ns "" "$@" ;;
esac
}

0 comments on commit d8ef4a3

Please sign in to comment.