-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
Allow Ponytest to exclude or include tests by name #1717
Conversation
@SeanTAllen I'd prefer option 1. |
packages/ponytest/pony_test.pony
Outdated
@@ -376,6 +390,8 @@ actor PonyTest | |||
_no_prog = true | |||
elseif arg == "--list" then | |||
_list_only = true | |||
elseif arg.compare_sub("--exclude=", 10) is Equal then | |||
_filter = arg.substring(9) |
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.
I think this 9
needs to be a 10
to cover the whole substring.
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.
arg bad sean
88d1e1a
to
076e47a
Compare
That's my preferred approach as well @jemc. I'm going to leave this as is until either @Praetonus or @sylvanc weighs in. If we get another core vote for 1, I'll move forward with that approach. |
Option 1 is good. |
076e47a
to
51c63b3
Compare
option 1 it is. updated. |
Since you've edited the changelog, you may see conflicts because we've now cut a 0.11.4 release. 😅 |
51c63b3
to
5850e0e
Compare
Adds --exclude command line option that can be used to exclude any tests whose name starts with the given prefix. Renames existing --filter command line option to --only to provide better symmetry with --exclude.
5850e0e
to
6736f7b
Compare
Adds --exclude command line option that can be used to
exclude any tests whose name starts with the given prefix.
Renames existing --filter command line option to --only to provide
better symmetry with --exclude.