Skip to content

Commit

Permalink
Show us the generated results.json
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Jul 30, 2024
1 parent 3b37f5c commit d8f0d93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/run-tests.sh
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit d8f0d93

Please sign in to comment.