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

Add CI test for manually maintained tests.toml files #2059

Open
senekor opened this issue Mar 9, 2025 · 2 comments
Open

Add CI test for manually maintained tests.toml files #2059

senekor opened this issue Mar 9, 2025 · 2 comments

Comments

@senekor
Copy link
Contributor

senekor commented Mar 9, 2025

See here for the original idea.

Basically, some exercises don't lend themselves to generating tests based on a template. We still want to be sure that the tests.toml produced by configlet matches a manually maintained test file. For this purpose, we could have a test that parses the tests.toml (using toml crate) and checks that for each test, a function named make_ident(description) exists in the rust test file.

Some test names may differ, in which case rust_fn in tests.toml can be used to override make_ident(description).

@ellnix
Copy link
Contributor

ellnix commented Mar 10, 2025

I'd like to try to implement this, I'll go ahead if you don't have any objections in the next few hours.

@senekor
Copy link
Contributor Author

senekor commented Mar 10, 2025

nope, go ahead 🙂

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