Exercism exercises in GDScript.
There are two options for iterating over all exercises to see if their exemplar/example implementation passes all the tests. Option B also allows single-exercise verification and overriding which Docker image to use for the test runner.
To set up for testing, clone https://github.com/exercism/gdscript-test-runner and move its contents to /opt/exercism/gdscript/test-runner:
git clone https://github.com/exercism/gdscript-test-runner.git
sudo mkdir -p /opt/exercism/gdscript/
sudo mv gdscript-test-runner/ /opt/exercism/gdscript/test-runner/To test the exercises, run godot --headless -s bin/verify-exercises.gd from the present repo's root (not the gdscript-test-runner repo root).
The docker verifier is included in the present repo, just run this from its root:
bin/verify-exercises-in-dockerIf you want to verify a single exercise:
bin/verify-exercises-in-docker two-ferIf you want to verify all exercises against a specified test runner:
bin/verify-exercises-in-docker -i my-local-imageThis allows maintainers to preview upgrades to the test runner.
configlet is an Exercism-wide tool for working with tracks. You can download it by running:
./bin/fetch-configletRun its lint command to verify if all exercises have all the necessary files and if config files are correct:
$ ./bin/configlet lint
The lint command is under development.
Please re-run this command regularly to see if your track passes the latest linting rules.
Basic linting finished successfully:
- config.json exists and is valid JSON
- config.json has these valid fields:
language, slug, active, blurb, version, status, online_editor, key_features, tags
- Every concept has the required .md files
- Every concept has a valid links.json file
- Every concept has a valid .meta/config.json file
- Every concept exercise has the required .md files
- Every concept exercise has a valid .meta/config.json file
- Every practice exercise has the required .md files
- Every practice exercise has a valid .meta/config.json file
- Required track docs are present
- Required shared exercise docs are present