Skip to content

Commit

Permalink
Skip river map visual test on windows and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
pdil committed Jan 17, 2024
1 parent 386a1e6 commit 31bdec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ test_that("plots are stable", {
vdiffr::expect_doppelganger("New England state map with labels excluding Maine", u)
vdiffr::expect_doppelganger("State map with labels", v)

# River map snapshot test fails on non-mac platforms,
# use manual verification instead.
skip_on_os(c("windows", "linux"))

rivers_t <- usmap_transform(usrivers)
river_map <- plot_usmap() + ggplot2::geom_sf(data = rivers_t, color = "blue")
vdiffr::expect_doppelganger("State map with major rivers", river_map)
Expand Down

0 comments on commit 31bdec2

Please sign in to comment.