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

Upkeep 2024-10 #6156

Merged
merged 19 commits into from
Oct 30, 2024
Merged

Upkeep 2024-10 #6156

merged 19 commits into from
Oct 30, 2024

Conversation

teunbrand
Copy link
Collaborator

@teunbrand teunbrand commented Oct 24, 2024

This PR aims to fix #6155.

Marked as a draft for now as things are checked off.

@teunbrand teunbrand marked this pull request as ready for review October 24, 2024 10:46
@teunbrand
Copy link
Collaborator Author

The following bullet:

Align the names of R/ files and test/ files

Was only exercised for guide-legend.R, guide-colorbar.R, guide-axis.R and guide-.R, mostly because I found the 'one file for all guide tests' to be hard to grok. These tests are still skipped on CRAN.

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

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

Seems good and non-controversial. But we should change expect_warning() to expect_snapshot() while we are at it

LICENSE Outdated Show resolved Hide resolved
LICENSE.md Outdated Show resolved Hide resolved
test_that("accessing an undefined variable results in an error", {
skip_if(getRversion() <= "4.4.0")
expect_snapshot(get_layer_data(p), error = TRUE)
})
Copy link
Member

Choose a reason for hiding this comment

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

Is it intended you put a test_that() call inside another test_that() call?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that way I can conditionally skip a single expectation without throwing out all other expectations in a test. I improvised this to skip some snapshots on older R versions. This was due to error formatting that has changed across R versions.

@teunbrand
Copy link
Collaborator Author

Thanks for the review Thomas!

@teunbrand teunbrand merged commit a47be59 into main Oct 30, 2024
13 checks passed
@teunbrand teunbrand deleted the upkeep-2024-10 branch October 30, 2024 08:07
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.

Upkeep for ggplot2 (2024)
2 participants