-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Sample points uniformly from transformed space #2095
Conversation
tests/testthat/test-sec-axis.R
Outdated
}) | ||
|
||
test_that("custom breaks works", { | ||
vdiffr::expect_doppelganger( |
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.
This would be better as a regular test
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.
All of them or just this one? Don't see how this one differs from the rest...
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 it's good to have one visual test to ensure the whole process basically works correctly. And then regular tests for everything else.
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.
gotcha
tests/testthat/test-sec-axis.R
Outdated
"dup_axis", | ||
ggplot(foo, aes(x, y)) + | ||
geom_point() + | ||
scale_x_continuous(name = "Unit A", |
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.
Better to set name to NULL
here, since it's not germane to the test.
I'd also consider using geom_blank()
to help focus on the important part of the visual test
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.
Sure, that's sloppy copy-pasting from my part
@thomasp85 are you interested in finishing this off? Otherwise @karawoo can take a look. |
Completely forgot about this one. Sure I'll finish it off👍 |
@thomasp85 still interested? |
Yep. Sorry, it seems this is constantly slipping out of focus... within the week |
Sorry for being slow on this - how is the new tests looking? |
Looks good - but I think you need to delete a couple of the generated svgs? |
The fail on travis devel is related to stringr and not this PR |
Fixes #1992