Skip to content

Run tests using java-test-runner#2559

Merged
sanderploegsma merged 9 commits into
mainfrom
ci-test-runner
Nov 9, 2023
Merged

Run tests using java-test-runner#2559
sanderploegsma merged 9 commits into
mainfrom
ci-test-runner

Conversation

@sanderploegsma
Copy link
Copy Markdown
Contributor

@sanderploegsma sanderploegsma commented Nov 8, 2023

Inspired by this forum topic: https://forum.exercism.org/t/re-using-the-test-runners-in-corresponding-track-ci-jobs/8070.

Note that this required some updates to some of the exercises, particularly ones where not all files that are part of the example solution were correctly listed in the exercise's config.json.

The Mazy Mice exercise required a small change because of a compilation error due to a class being defined in both the example solution as well as the tests. Not sure why this wasn't caught when using the tests with Gradle. It shouldn't impact students though.


Reviewer Resources:

Track Policies

@sanderploegsma
Copy link
Copy Markdown
Contributor Author

I do wonder whether the trade-off is worth it, since this approach slows down the CI test job 2-3x compared to using Gradle.

@sanderploegsma sanderploegsma marked this pull request as ready for review November 8, 2023 14:19
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml Outdated
@sanderploegsma sanderploegsma merged commit afc6071 into main Nov 9, 2023
@sanderploegsma sanderploegsma deleted the ci-test-runner branch November 9, 2023 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants