Skip to content

Commit c040a5b

Browse files
committed
Disable sf tests
Part of #2684
1 parent 41dc8ff commit c040a5b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tests/testthat/test-coord_sf.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@ test_that("multiplication works", {
77
plot <- ggplot(nc) +
88
geom_sf() +
99
coord_sf()
10+
11+
# Perform minimal test as long as vdiffr test is disabled
12+
expect_error(regexp = NA, ggplot_build(plot))
13+
14+
skip("sf tests are currently unstable")
1015
expect_doppelganger("sf-polygons", plot)
1116
})

tests/testthat/test-geom-sf.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ test_that("geom_sf draws correctly", {
1010
f <- system.file("gpkg/nc.gpkg", package="sf")
1111
nc <- sf::read_sf(f)
1212

13+
14+
# Perform minimal tests as long as vdiffr tests are disabled
15+
plot <- ggplot() + geom_sf(data = nc)
16+
expect_error(regexp = NA, ggplot_build(plot))
17+
18+
pts <- sf::st_sf(a = 1:2, geometry = sf::st_sfc(sf::st_point(0:1), sf::st_point(1:2)))
19+
plot <- ggplot() + geom_sf(data = pts)
20+
expect_error(regexp = NA, ggplot_build(plot))
21+
22+
23+
skip("sf tests are currently unstable")
24+
1325
expect_doppelganger("North Carolina county boundaries",
1426
ggplot() + geom_sf(data = nc) + coord_sf(datum = 4326)
1527
)

0 commit comments

Comments
 (0)