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 Perl-style regex filters for tests #188

Merged
merged 1 commit into from
Jan 7, 2015
Merged

Conversation

leeper
Copy link
Contributor

@leeper leeper commented Sep 30, 2014

Perl-style regular expressions are currently not allowed in the filter argument to test_dir, test_package, and test_check. This pull request adds a perl argument (logical, default FALSE) that enables Perl-style regular expressions, which is passed down to grepl.

@hadley
Copy link
Member

hadley commented Sep 30, 2014

I'd be tempted to use ... so people can pass down perl, fixed, ...

@leeper
Copy link
Contributor Author

leeper commented Sep 30, 2014

I'd be fine with that, but didn't want to steal ... in case you wanted to use it for something else in those functions. Should I revise?

@leeper
Copy link
Contributor Author

leeper commented Sep 30, 2014

I've updated to use ....

@hadley
Copy link
Member

hadley commented Jan 7, 2015

Can you please rebase?

@leeper
Copy link
Contributor Author

leeper commented Jan 7, 2015

Done.

@hadley
Copy link
Member

hadley commented Jan 7, 2015

The diff doesn't look right to me - can you please double check?

@leeper
Copy link
Contributor Author

leeper commented Jan 7, 2015

Oh, yea, that was weird. How does this look?

@@ -1,5 +1,9 @@
# testthat 0.9.1.9000

* `test_dir`, `test_package`, and `test_check` have an added `...` argument
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't look like you actually modified test_check() (which is right) but can you remove from here?

Also house style is to follow function names with (), e.g.test_dir().

@leeper
Copy link
Contributor Author

leeper commented Jan 7, 2015

Meant to modify test_check(). This has been fixed, so NEWS is now correct.

Added parentheses to function names in NEWS.

hadley added a commit that referenced this pull request Jan 7, 2015
Allow Perl-style regex filters for tests
@hadley hadley merged commit b9f7edc into r-lib:master Jan 7, 2015
jimhester added a commit to jimhester/devtools that referenced this pull request Mar 24, 2015
jimhester added a commit to jimhester/devtools that referenced this pull request Apr 21, 2015
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.

2 participants