-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 match
option
#477
Add match
option
#477
Conversation
@@ -48,6 +48,7 @@ var cli = meow([ | |||
' --tap, -t Generate TAP output', | |||
' --verbose, -v Enable verbose output', | |||
' --no-cache Disable the transpiler cache', | |||
' --grep, -g Only run tests matching pattern', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only run tests matching a pattern
This aims to resolve issue avajs#476. --match can be passed to ava which means to only run tests with a title matching the provided match string. The skipped metadata flag will be added to each test not matching the match string.
a19bded
to
f3c8a58
Compare
@@ -48,6 +48,7 @@ var cli = meow([ | |||
' --tap, -t Generate TAP output', | |||
' --verbose, -v Enable verbose output', | |||
' --no-cache Disable the transpiler cache', | |||
' --match, -m Only run tests with titles matching', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only run tests with matching title
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flag docs also needs to be reflected in the CLI help output in the readme.
I think we've decided on slightly different semantics for all this (see the final few comments in #476). Specifically, there is discussion of sudo globs (only @sindresorhus - do you feel the issue is settled? @matthewbauer - Are you willing to update this PR? |
@jamestalmage Let's wait until after the weekend. Would like @vdemedes feedback on #476. |
@matthewbauer Can you also fix the merge conflict? Sorry about the back and forth. Glad we finally have a resolution on this. |
Should it be possible to use it multiple times? I'm thinking We also need to document the syntax somewhere, the |
@matthewbauer Just a friendly ping :) |
Closing for lack of activity. Would be happy to reopen if this get's any updates, but I want to give other users the opportunity to work on this. |
This aims to resolve issue #476. --match can be passed to ava which
means to only run tests with a title matching the provided match
string. The skipped metadata flag will be added to each test not
matching the match string.