From d6ea481cbcb17a1f4372be689210a987be86d1a6 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 19 Nov 2024 03:56:59 -0500 Subject: [PATCH] feat(tools): create a bash testing script (#57218) --- tools/scripts/test_challenges.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tools/scripts/test_challenges.sh diff --git a/tools/scripts/test_challenges.sh b/tools/scripts/test_challenges.sh new file mode 100755 index 00000000000..e31d6a44dff --- /dev/null +++ b/tools/scripts/test_challenges.sh @@ -0,0 +1,14 @@ +#!/bin/bash + + +echo "Enter the ids of the challenges you wish to test (separated by commas) and hit enter." +read -r input + + +IFS=',' challengeIDS=($input) + +for challengeID in "${challengeIDS[@]}"; +do + challengeID="$(tr -d ' ' <<< "$challengeID")" + FCC_CHALLENGE_ID=$challengeID pnpm run test:curriculum +done