Create test cases from problem-specification's canonical-data using template?
- Dominant language
- Kotlin
- Stars
- 249
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
The Python track has a nice `bin/generate_tests.py` that reads the `exercism/problem-specification/exercises/$NAME/canonical-data.json` and uses `exercises/$NAME/.meta/template.j2` to generate the test script `exercises/$NAME/$NAME_test.py`.
I would like to see such a mechanism in the Kotlin track as well. So far I wrote a hand full of Kotlin test cases for my previous pull requests just by modifying the Python `template.j2` and it worked very well. Especially exercises with 20+ test cases and long descriptions are pain.
Extra points of that script warns if the .meta/version differs from the problem spec and optionally creates/updates version, tests, README.md as needed.
Any thoughts? In case someone would be willing to implement it, where should it go, to configlet, bin/, scripts/, a Gradle task?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.