Skip to content

Update add-practice-exercise script to reference test generator - #738

Merged
ErikSchierboom merged 1 commit into
generator-samplefrom
add-new-exercise-generate-template-file
Jan 12, 2025
Merged

ErikSchierboom merged 1 commit into
generator-samplefrom
add-new-exercise-generate-template-file

Conversation

@ErikSchierboom

@ErikSchierboom ErikSchierboom commented Jan 11, 2025 •

Copy link
Copy Markdown
Member

This should be merged after #728 is merged.

Comment thread bin/add-practice-exercise
- Create the test generator in '${generator_tpl_file}'
- The test generator uses the canonical data from 'https://github.com/exercism/problem-specifications/blob/main/exercises/${slug}/canonical-data.json'
- Any test cases you don't want to implement, mark them in 'exercises/practice/${slug}/.meta/tests.toml' with "include = false"
- Run 'bin/generate-exercise-tests ${slug}' to generate the tests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a mismatch on line 109. This refers to the generator as generate-exercise-tests, whereas the PR that adds the generator refers to it as generate-tests.

Comment thread bin/add-practice-exercise
- Create the test generator in '${generator_tpl_file}'
- The test generator uses the canonical data from 'https://github.com/exercism/problem-specifications/blob/main/exercises/${slug}/canonical-data.json'
- Any test cases you don't want to implement, mark them in 'exercises/practice/${slug}/.meta/tests.toml' with "include = false"
- Run 'bin/generate-exercise-tests ${slug}' to generate the tests

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Run 'bin/generate-exercise-tests ${slug}' to generate the tests
- Run 'bin/generate-tests ${slug}' to generate the tests

@ErikSchierboom
ErikSchierboom merged commit f6bcb12 into generator-sample Jan 12, 2025
@ErikSchierboom
ErikSchierboom deleted the add-new-exercise-generate-template-file branch January 12, 2025 13:58
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.

2 participants