Repository navigation
improvements for running tests locally in docker. - #981
Merged
Merged
Conversation
glennj
commented
Nov 24, 2026
Contributor
- Allow bin/validate_exercises to pass a -D option to bin/validate_one_exercise.
- Only pull the test runner if it's not already present.
- Put the exercise's config.json into the tempdir (eliuds-eggs fails in docker otherwise).
…exercise. Only pull the test runner if it's not already present. Put the exercise's config.json into the tempdir (eliuds-eggs fails in docker otherwise).
IsaacG
reviewed
Nov 24, 2026
| cp "${tests}" "${dir}/${tests}" | ||
| cp bats-*.bash "${editor_files[@]}" "${dir}" | ||
| mkdir "$dir/.meta" | ||
| cp .meta/config.json "${dir}/.meta" |
Contributor
Author
There was a problem hiding this comment.
It more accurately runs this script the way the test runner does. Consider eliuds-eggs: most other tracks use the slug name in the solution, but here the solution is pop_count.sh (and the test file too). The online test runner has no trouble with this exercise, but running bin/validate_one_exercise -D eliuds-eggs was erroring.
I've seen other tracks that have a bin/validate-track-in-docker in either the track or the test runner. Now in the bash track bin/validate_exercises -D fulfills that purpose.
IsaacG
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.