Skip to content

Commit

Permalink
Fixed bin/verify-exercises
Browse files Browse the repository at this point in the history
The verify-exercises script now runs the individual test for both
concept and practice exercises, and is the default in the GitHub
workflow.
  • Loading branch information
gvrooyen committed Aug 24, 2024
1 parent 17ef99f commit 5cf8060
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: bin/configlet lint

- name: Verify all exercises
run: bin/run-test.sh
run: bin/verify-exercises

- name: Apply code formatting to all .odin files
run: bin/format-all.sh
Expand Down
6 changes: 3 additions & 3 deletions bin/verify-exercises
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Synopsis:
# Test the track's exercises.
#
#
# At a minimum, this file must check if the example/exemplar solution of each
# Practice/Concept Exercise passes the exercise's tests.
#
Expand All @@ -22,14 +22,14 @@
for concept_exercise_dir in ./exercises/concept/*/; do
if [ -d $concept_exercise_dir ]; then
echo "Checking $(basename "${concept_exercise_dir}") exercise..."
# TODO: run command to verify that the exemplar solution passes the tests
bin/run-test.sh "${concept_exercise_dir}"
fi
done

# Verify the Practice Exercises
for practice_exercise_dir in ./exercises/practice/*/; do
if [ -d $practice_exercise_dir ]; then
echo "Checking $(basename "${practice_exercise_dir}") exercise..."
# TODO: run command to verify that the example solution passes the tests
bin/run-test.sh "${practice_exercise_dir}"
fi
done

0 comments on commit 5cf8060

Please sign in to comment.