Skip to content

Commit

Permalink
exclude rbmit from snapshot testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelru committed Jul 24, 2024
1 parent db6cb21 commit 427c9bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 74 deletions.
10 changes: 9 additions & 1 deletion package/tests/testthat/_create_test_files.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Script to create test files for all articles in the test book.
# It would not remove existing test files so in case article location or name is changed, the old test file should be removed manually.
# run with `source()`, e.g.:
# source("./tests//testthat/_create_test_files.R")
# source("./tests/testthat/_create_test_files.R")

article_files <- list.files(
test_book_path,
Expand All @@ -12,6 +12,14 @@ article_files <- list.files(
) |>
grep("tables/|listings/|graphs/", x = _, value = TRUE)

excluded_articles <- c(
# Stan is not reproducible on different platforms
# https://mc-stan.org/docs/2_27/reference-manual/reproducibility-chapter.html
"tables/efficacy/rbmit01.qmd"
)

article_files <- setdiff(article_files, excluded_articles)

test_files <- article_files |>
vapply(
X = _,
Expand Down

This file was deleted.

36 changes: 0 additions & 36 deletions package/tests/testthat/_snaps/stable/tables-efficacy-rbmit01.md

This file was deleted.

1 change: 0 additions & 1 deletion package/tests/testthat/test-tables-efficacy-rbmit01.R

This file was deleted.

0 comments on commit 427c9bb

Please sign in to comment.