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

Various test lints #457

Merged
merged 2 commits into from Jan 12, 2024
Merged

Various test lints #457

merged 2 commits into from Jan 12, 2024

Conversation

olivroy
Copy link
Contributor

@olivroy olivroy commented Jan 11, 2024

Use expect_no_error() + other goodies from testthat 3.2.0 to make the tests a bit more clear.

Copy link
Member

@jennybc jennybc left a comment

Choose a reason for hiding this comment

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

Thanks! I made a few requests.

DESCRIPTION Outdated Show resolved Hide resolved
})

test_that("reprex() errors for an R crash, by default", {
# TODO: consider switching to expect_snapshot() after switch to 3e
# TODO: consider switching to expect_snapshot()
Copy link
Member

@jennybc jennybc Jan 11, 2024

Choose a reason for hiding this comment

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

Since this is shaping up to be ?the conclusion? of switching to testthat 3e, would you go ahead switch this to expect_snapshot()?

Likewise just below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think the one below is worth adding as a snapshot as it spans many lines. I think it is fine as is.

@jennybc jennybc merged commit e1f65e9 into tidyverse:main Jan 12, 2024
12 checks passed
@olivroy olivroy deleted the test branch January 12, 2024 16:21
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.

None yet

2 participants