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 a way to filter tests #854

Open
sirenkovladd opened this issue Nov 14, 2024 · 2 comments
Open

Add a way to filter tests #854

sirenkovladd opened this issue Nov 14, 2024 · 2 comments
Milestone

Comments

@sirenkovladd
Copy link

For cli:
--test-name-pattern/--testNamePattern/-t Node, Jest, Vitest
--test-skip-pattern Node

I also suggest adding these options to the Poku runner

@wellwelwel
Copy link
Owner

This idea sounds familiar to me as a --filter.

Could you show me a practical example?
Depending on how this functionality works, it could even replace --filter.

@sirenkovladd
Copy link
Author

filter - seems to filter by file name
test-name-pattern - by test name

for example https://poku.io/docs/tutorials/cross-platform#using-poku-api-advanced-concept
if run

npx poku -t bun

should only run tests that contain text bun

@wellwelwel wellwelwel added this to the 3.0.0 milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants