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

Allow Ponytest to exclude or include tests by name #1717

Merged
merged 1 commit into from
Mar 29, 2017

Conversation

SeanTAllen
Copy link
Member

@SeanTAllen SeanTAllen commented Mar 18, 2017

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.

@SeanTAllen SeanTAllen added changelog - added Automatically add "Added" CHANGELOG entry on merge do not merge This PR should not be merged at this time needs discussion during sync labels Mar 18, 2017
@jemc
Copy link
Member

jemc commented Mar 18, 2017

@SeanTAllen I'd prefer option 1.

@@ -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)
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arg bad sean

@SeanTAllen
Copy link
Member Author

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.

@sylvanc
Copy link
Contributor

sylvanc commented Mar 18, 2017

Option 1 is good.

@SeanTAllen SeanTAllen changed the title Add ability for ponytest to exclude tests based on name Allow Ponytest to exclude or include tests by name Mar 18, 2017
@SeanTAllen
Copy link
Member Author

option 1 it is. updated.

@SeanTAllen SeanTAllen removed changelog - added Automatically add "Added" CHANGELOG entry on merge do not merge This PR should not be merged at this time needs discussion during sync labels Mar 18, 2017
@killerswan
Copy link
Member

Since you've edited the changelog, you may see conflicts because we've now cut a 0.11.4 release. 😅

@SeanTAllen
Copy link
Member Author

Once this passes CI, it should be good to merge, I believe it meets the changes you are looking for with option 1 @sylvanc @jemc

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.
@SeanTAllen SeanTAllen merged commit 51c11a3 into master Mar 29, 2017
@SeanTAllen SeanTAllen deleted the ponytest-exclude-flag branch March 29, 2017 21:55
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

Successfully merging this pull request may close these issues.

4 participants