-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
4,996 additions
and
50 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
825 changes: 825 additions & 0 deletions
825
tests/testthat/_snaps/vignette-snapshot/advanced.new.html
Large diffs are not rendered by default.
Oops, something went wrong.
613 changes: 613 additions & 0 deletions
613
tests/testthat/_snaps/vignette-snapshot/aggregation.html
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
696 changes: 696 additions & 0 deletions
696
tests/testthat/_snaps/vignette-snapshot/archive.new.html
Large diffs are not rendered by default.
Oops, something went wrong.
672 changes: 672 additions & 0 deletions
672
tests/testthat/_snaps/vignette-snapshot/epiprocess.html
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Vignettes that use epi_archives or epi_dfs. | ||
vignettes <- paste0(here::here("vignettes/"), c( | ||
"advanced.Rmd", | ||
"aggregation.Rmd", | ||
"archive.Rmd", | ||
"epiprocess.Rmd", | ||
"slide.Rmd" | ||
)) | ||
for (input_file in vignettes) { | ||
test_that(paste0("snapshot vignette ", basename(input_file)), { | ||
# skip("Skipping snapshot tests by default, as they are slow.") | ||
output_file <- sub("\\.Rmd$", ".html", input_file) | ||
withr::with_file(output_file, { | ||
devtools::build_rmd(input_file) | ||
expect_snapshot_file(output_file) | ||
}) | ||
}) | ||
} |
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
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
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
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
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