-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run concept exercises in CI #487
Run concept exercises in CI #487
Conversation
For us to be able to run the exercise tests against the exemplar implementations, their file names should match the file names in the solution to get the imports to work. Therefore, instead of having a `.meta/Exemplar.swift` file in every concept exercise, the exemplar implementations have been moved to `.meta/ExemplarSources` and renamed to match the solution file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic! I've left two minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet. I also really like how the xswift-test-spm
file is no longer needed.
@sanderploegsma We have a passing CI system again! |
This fixes #469 by adding the concept exercises to the root
Package.swift
.To get this working one change to the exercises was required: the exemplar implementations were all in
.meta/Exemplar.swift
files, which caused the exercise's tests to fail on the imports. I therefore moved all exemplar implementations to.meta/Sources/[ExerciseName]/[ExerciseName]Exemplar.swift
and updated theconfig.json
files accordingly.Note that I removed the creation of
LinuxMain.swift
in the SPM manifest since the CI job no longer runs on Linux, so this is not necessary.