-
Notifications
You must be signed in to change notification settings - Fork 761
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
Option to turn off helper loading #1169
Conversation
Current coverage is 41.91%@@ master #1169 diff @@
==========================================
Files 86 86
Lines 4464 4464
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 1863 1871 +8
+ Misses 2601 2593 -8
Partials 0 0
|
I'd rather not add an argument for this, but instead provide some other way to scope your helpers so they work differently between formal and informal testing. |
@@ -86,7 +87,7 @@ | |||
#' } | |||
#' @export | |||
load_all <- function(pkg = ".", reset = TRUE, recompile = FALSE, | |||
export_all = TRUE, quiet = FALSE, create = NA) { | |||
export_all = TRUE, helpers=TRUE, quiet = FALSE, create = NA) { |
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.
Can you please put spaces around =
?
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.
Spaces are there now.
On that note, I think it would be great if |
@pitakakariki any interest in merging and updating? We'll be working on devtools for the next few weeks. |
@hadley will do. Should I wait till devtools is passing on Appveyor or is it okay to do it now? |
I've sent a pull request to pkgload here r-lib/pkgload#41 |
I'd prefer not to load my testthat helpers with
load_all
.I set a bunch of options like default number of simulations and progress bars which need to be different between interactive use and testing.
nb: Relevant issue is #1125