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

Generate tests #65

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

keiravillekode
Copy link
Contributor

No description provided.

Copy link

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

@keiravillekode
Copy link
Contributor Author

See first commit for examples of generated tests.

A minor issue is run-length-encoding generates two "empty string" test functions with the same name, one for encode and one for decode. We can either work around this or improve the generator, for example in a later PR.

@keiravillekode
Copy link
Contributor Author

See first commit for examples of generated tests.

A minor issue is run-length-encoding generates two "empty string" test functions with the same name, one for encode and one for decode. We can either work around this or improve the generator, for example in a later PR.

Improved generator to deal with this: each exercise can define a describe(case) function. run-length-encoding will use this, most exercises will not need it.

@keiravillekode
Copy link
Contributor Author

For examples of generator output, see
fd79507
e9871ba

@keiravillekode keiravillekode merged commit f430e7f into exercism:main Oct 17, 2024
1 check passed
@keiravillekode keiravillekode deleted the generate-tests branch October 17, 2024 14:52
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

Successfully merging this pull request may close these issues.

1 participant