-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Make sure our existing generators are up-to-date #604
Comments
The forth exercise generator became askew due to that. It runs, but test cases are empty. I have a WIP for it. |
For issue exercism#604. - Update generator: Use .Header in template. Align template with latest canonical-data.json. - Update test program: Reference testGroups containing the generated test cases. Annotate the FAIL output with test group name & test case description. Add PASS output for successful cases.
For issue exercism#604. - Update generator: Use .Header in template. Align template with latest canonical-data.json. - Update test program: Reference testGroups containing the generated test cases. Annotate the FAIL output with test group name & test case description. Add PASS output for successful cases.
For issue exercism#604. Use .Header in generator template. Change Valid => Cases to align template with latest canonical-data.json.
For issue exercism#604. - Update generator: Use .Header in generator template. Align template with latest canonical-data.json. Add test description to generated cases. - Update test program: Output test description. Add PASS output for successful cases.
For issue exercism#604. - Update generator: Use .Header in generator template. Align template with latest canonical-data.json.
For issue exercism#604. Use .Header in generator template. Align template with latest canonical-data.json. Add test description to generated cases.
For issue exercism#604. Use .Header in generator template. Align template with latest canonical-data.json. Use a OneCase struct type to contain the whole set of possible json objects for the various test groups. Add istrSlice as conversion helper for .Expected.
I've changed this issue from a checklist to multiple issues. I've left the links to relevant PR's in the original comment but I don't think it's necessary to continue adding these. Let me know if any of this is wrong/not as good as it could be! BTW Hub was really useful for this. I was able to repeat the command |
Great work, everyone! |
In x-common, we have various exercises with canonical-data.json representing the recommended set of tests for that exercise. We created generators to more easily keep up with changes in x-common. Whenever x-common changes, the task is as simple as re-running the generator.
The current documentation is at https://github.com/exercism/xgo#generating-test-cases - if at any point we find that we should explain something better, we should add any necessary documentation.
Preliminaries:
ls exercises/*/cases_test.go | cut -d/ -f2
from the root of the xgo directory.ls exercises/*/canonical-data.json | cut -d/ -f2
from the root of the x-common directory.This issue concerns exercises that already have a generator.
Because of recent changes to make all the canonical-data.json files conform to a common scheme (exercism/problem-specifications#625), it might be the case that our current generator no longer runs.
For these exercises we'd make sure the current generator runs, or if it doesn't then we'd update it.
In addition, the three lines at the top of the file:
can simply be replaced with
{{.Header}}
, which has the effect of:Ori
field, which is confusingly namedRelevant exercises
Once all these are complete, we can delete the deprecated
Ori
field.The text was updated successfully, but these errors were encountered: