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

Make testing more quiet #997

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Make testing more quiet #997

merged 2 commits into from
Aug 10, 2023

Conversation

EmilHvitfeldt
Copy link
Member

This isn't the biggest deal in the world. But the tests can sometimes be a little noisy. This PR fixes what I found.

For example this is what I'm trying to avoid:

Screenshot 2023-08-08 at 10 30 50 AM

@@ -41,7 +41,7 @@ load_libs <- function(x, quiet, attach = FALSE) {
if (!attach) {
suppressPackageStartupMessages(requireNamespace(pkg, quietly = quiet))
} else {
library(pkg, character.only = TRUE)
library(pkg, character.only = TRUE, quietly = quiet)
Copy link
Member Author

Choose a reason for hiding this comment

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

I assume this is okay? we are passing quiet to requireNamespace() so i think it is okay to do it to library() as well

Copy link
Member

@hfrick hfrick left a comment

Choose a reason for hiding this comment

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

Shhhhhh 🤫

@EmilHvitfeldt EmilHvitfeldt merged commit e6cd72f into main Aug 10, 2023
9 checks passed
@EmilHvitfeldt EmilHvitfeldt deleted the quiet-testing branch August 10, 2023 17:00
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants