-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Test generator #771
Comments
An example of an exercise that might be problematic for the test generator: elixir/exercises/practice/kindergarten-garden/.meta/tests.toml Lines 20 to 30 in 4ab39ca
elixir/exercises/practice/kindergarten-garden/test/garden_test.exs Lines 42 to 57 in 4ab39ca
|
Is there any guarantee that all the tests in You're right to keep expectations realistic, there are going to be load of exceptions :) |
There is a guarantee that a test in About this, there are a lot of exercises where Elixir added some extra tests cases that don't exist in problem specifications. I think the generator shouldn't try to remove those, but I should try to remove tests listed in |
Elixir 1.13 will have |
Is this topic still relevant ? In the ongoing implementation of Since JSON may be too poor to capture subtleties like this one, maybe some strongly structured comments in the TOML (the Concerning the identification of extra cases vs specs cases (and @uuid "2c698d68-b39d-4615-817f-2cfacc9aa318"
@tag :pending
test "Lorem ipsum" do
...
A downside of this approach is that this |
Sorry for the lack of response... It's been over 2 years since I created this issue and I have to admit that my need for a test generator is very low. The work it takes to occasionally update an Exercise manually is not a lot, and there aren't many new exercises coming up that would need creating with a test generator. @jiegillet If you don't mind, I would close this issue. |
Yes, I think this can be closed. |
This issue is to collect requirements and ideas for a test generator. We don't have a specific implementation plans yet.
A test generator would a script or project in this repository that:
tests.toml
file from a practice exercise and chooses test ids that are not marked withinclude = false
https://github.com/exercism/problem-specifications/blob/main/exercises/[exercise]/canonical-data.json
and generates a test suite for the tests chosen fromtests.toml
The process of updating
tests.toml
to include the newest tests cases is already automated withbin/configlet sync
. The assumption is that we would run the test runner afterbin/configlet sync
.It would be fine if the test generator didn't work for all exercises, but at least some of them. It would also be fine if it required a bit of manual work, or maybe per-exercise configuration stored in
exercises/practice/[exercise]/.meta/
.Previous attempts:
The text was updated successfully, but these errors were encountered: