Skip to content
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

Create test cases from problem-specification's canonical-data using template? #415

Open
lathspell opened this issue Jan 22, 2020 · 1 comment

Comments

@lathspell
Copy link
Contributor

lathspell commented Jan 22, 2020

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?

@fahadhk
Copy link
Contributor

fahadhk commented Oct 26, 2021

can you share any information about this. I have an open PR #483 where I can use your experience.

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

No branches or pull requests

2 participants