Skip to content

Add verify-exercises-in-docker#150

Merged
ajborla merged 2 commits into
exercism:mainfrom
keiravillekode:verify-exercises-in-docker
May 10, 2026
Merged

Add verify-exercises-in-docker#150
ajborla merged 2 commits into
exercism:mainfrom
keiravillekode:verify-exercises-in-docker

Conversation

@keiravillekode

Copy link
Copy Markdown
Contributor

This script is originally from generic-track

@keiravillekode

Copy link
Copy Markdown
Contributor Author

We will eventually need the test runner enabled for production, see http://forum.exercism.org/t/create-new-track-for-rescript/22606/33 for an example discussion from another track.

For now, we can clone rexx-test-runner and run bin/run-tests-in-docker.sh This creates a local Docker image exercism/rexx-test-runner:latest

This local test runner image can be specified on the command line using -i

See exercism/free-pascal#36

@keiravillekode

keiravillekode commented Apr 6, 2026

Copy link
Copy Markdown
Contributor Author

Note that the top level config.json has

  "files": {
    "solution": [
      "%{kebab_slug}.rexx"
    ],
    ...
    "example": [
      ".meta/example.rexx"
    ],
    ...
  },

with one solution file and one example file.

hello-world .meta/config.json needs to similarly have

  "files": {
    "solution": ["hello-world.rexx"],
    ...
    "example": [".meta/example.rexx"]
  },

with one solution file and one example file. (#151 achieves this for all exercises.)

Then we can run

bin/verify-exercises-in-docker -i exercism/rexx-test-runner:latest hello-world

@keiravillekode

Copy link
Copy Markdown
Contributor Author

The following exercises succeed

accumulate
acronym
all-your-base
anagram
armstrong-numbers
atbash-cipher
bank-account
beer-song
binary-search
bob
collatz-conjecture
custom-set
darts
difference-of-squares
error-handling
etl
gigasecond
grade-school
grains
hamming
hello-world
high-scores
house
isbn-verifier
isogram
leap
luhn
matching-brackets
matrix
nth-prime
nucleotide-count
perfect-numbers
phone-number
protein-translation
proverb
queen-attack
raindrops
resistor-color
resistor-color-duo
resistor-color-trio
rna-transcription
roman-numerals
rotational-cipher
saddle-points
scrabble-score
secret-handshake
series
sieve
simple-cipher
space-age
strain
sublist
sum-of-multiples
transpose
triangle
twelve-days
two-fer

The following exercises fail

clock
list-ops
ocr-numbers
pangram
prime-factors
reverse-string
square-root
word-count

@keiravillekode

Copy link
Copy Markdown
Contributor Author

If we use

to build exercism/rexx-test-runner:latest

and then merge (in any order)

then we can successfully run
bin/verify-exercises-in-docker -i exercism/rexx-test-runner:latest
which tests all practice exercises against the test runner.

In other words, all exercises will now pass the test runner.

@keiravillekode

Copy link
Copy Markdown
Contributor Author

cc @ajborla

This script is originally from generic-track
@keiravillekode keiravillekode force-pushed the verify-exercises-in-docker branch from 28cd6ae to 3a5d272 Compare April 10, 2026 04:50
@keiravillekode

Copy link
Copy Markdown
Contributor Author

Now updated to allow for mismatch in number of files.

For example, with

  "files": {
    "solution": ["hello-world.rexx", "hello-world-toplevel.rexx"],
    "test": ["test-hello-world"],
    "example": [".meta/example.rexx"]
  },

we overwrite hello-world.rexx with .meta/example.rexx, and leave hello-world-toplevel.rexx unchanged.

bin/verify-exercises-in-docker -i exercism/rexx-test-runner:latest

now passes even without PR 151.

@keiravillekode keiravillekode force-pushed the verify-exercises-in-docker branch from 7c707bc to 458a0f4 Compare April 12, 2026 01:01
@IsaacG

IsaacG commented May 10, 2026

Copy link
Copy Markdown
Member

+cc @ajborla

@ajborla ajborla merged commit 72bcc66 into exercism:main May 10, 2026
2 checks passed
@IsaacG

IsaacG commented May 10, 2026

Copy link
Copy Markdown
Member

@ajborla Thanks for taking a look! There's a few more PRs in this repo that could use your maintainer-review :)

@ajborla

ajborla commented May 10, 2026

Copy link
Copy Markdown
Member

I haven't been active online for quite a while, now. I will try. I really do want to finish the project and get it live. Many thanks to you guys for keeping this going.

@IsaacG

IsaacG commented May 11, 2026

Copy link
Copy Markdown
Member

An occasional check on the open PRs would be helpful. No one else can make any progress without the maintainer (you) approving the PRs.

@keiravillekode keiravillekode deleted the verify-exercises-in-docker branch May 11, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants