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 support for parsing test titles with parameters (such as test.each) #5

Open
jesperorb opened this issue Oct 26, 2023 · 0 comments
Labels
core Everything related to core logic for shared logic for reporters enhancement New feature or request

Comments

@jesperorb
Copy link
Contributor

When using parameters in test.each blocks, such as "validate: $name", the lib cannot parse this test title as the resolved name being printed to the user. The reporters main way of connecting tags to test blocks is via the test title. But when the test title is dynamic the matching fails.

Find a way to match a resolved test title to a parameterized test title
validate: $name -> validate: firstName.

This is just one example: full list of how titles can be formatted can be found here:
https://nodejs.org/api/util.html#utilformatformat-args

@jesperorb jesperorb converted this from a draft issue Oct 26, 2023
@jesperorb jesperorb added enhancement New feature or request core Everything related to core logic for shared logic for reporters labels Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Everything related to core logic for shared logic for reporters enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant