-
Notifications
You must be signed in to change notification settings - Fork 323
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
New option testthat.summary.omit_dots to omit progress dots #502
Conversation
Testing in RStudio seems to ignore .Rprofile, I don't know how to set this option globally so that it is also respected when testing in RStudio. |
@@ -41,22 +43,23 @@ SummaryReporter <- R6::R6Class("SummaryReporter", inherit = Reporter, | |||
}, | |||
|
|||
add_result = function(context, test, result) { | |||
dot <- NULL |
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 don't particularly like the flow of logic here, but I can't see an obviously better approach.
@@ -65,7 +65,7 @@ test_that("reporters produce consistent output", { | |||
save_report("debug") | |||
) | |||
save_report("check", error_regexp = NULL) | |||
save_report("summary", SummaryReporter$new(show_praise = FALSE)) | |||
save_report("summary", SummaryReporter$new(show_praise = FALSE, omit_dots = FALSE)) |
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 we also need a test with omit_dots = TRUE
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.
Added as "summary-no-dots".
And a bullet for news please (I'll handle any merge conflicts) |
9da95a7
to
60fadff
Compare
option `testthat.summary.max_reports` (default 15) is reached | ||
(#520). | ||
|
||
* New option `testthat.summary.omit_dots`, default to `FALSE`. Setting to `TRUE` hides the progress dots from the output of the summary reporter, which speeds up tests by a small margin (#502). |
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.
Needs line break
a4f3311
to
fca838b
Compare
Added help description, should be complete now. |
Thanks! |
The dots account for roughly 10%-20% of the testing time, this is difficult to parallelize (#486). Default: Show dots.
Now also fixes #520.