-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually making
expect_doppleganger
alias
- Loading branch information
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
library(testthat) | ||
library(vdiffr) | ||
library(ggplot2) | ||
library(ggside) | ||
|
||
if ((nzchar(Sys.getenv("CI")) || | ||
!nzchar(Sys.getenv("NOT_CRAN"))) && | ||
identical(Sys.getenv("VDIFFR_RUN_TESTS"), 'false')) { | ||
#if we are running tests remotely AND | ||
# we are opting out of using vdiffr | ||
# assigning a dummy function | ||
|
||
expect_doppelganger <- function(...) { | ||
testthat::skip("`VDIFFR_RUN_TESTS` set to false on this remote check") | ||
} | ||
} else { | ||
expect_doppelganger <- vdiffr::expect_doppelganger | ||
} | ||
|
||
test_check("ggside") |