From d8f0d93bce2f8b9bcbe842e15f5eefba6685b66a Mon Sep 17 00:00:00 2001 From: Derk-Jan Karrenbeld Date: Tue, 30 Jul 2024 03:13:45 +0200 Subject: [PATCH] Show us the generated results.json --- bin/run-tests.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/run-tests.sh b/bin/run-tests.sh index f1d9365..e9a640f 100755 --- a/bin/run-tests.sh +++ b/bin/run-tests.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Synopsis: -# Test the test runner by running it against a predefined set of solutions +# Test the test runner by running it against a predefined set of solutions # with an expected output. # Output: @@ -14,7 +14,7 @@ exit_code=0 # We need to copy the fixtures to a temp directory as the user -# running within the Docker container does not have permissions +# running within the Docker container does not have permissions # to run the sed command on the fixtures directory fixtures_dir="test/fixtures" tmp_fixtures_dir="/tmp/test/fixtures" @@ -40,6 +40,8 @@ for test_file in $(find "${tmp_fixtures_dir}" -name '*.test.ts'); do diff "${results_file_path}" "${expected_results_file_path}" if [ $? -ne 0 ]; then + echo "=======================================================" + cat "${results_file_path}" exit_code=1 fi done