diff --git a/tests/testthat/test-quarto_leanpub_prep.R b/tests/testthat/test-quarto_leanpub_prep.R deleted file mode 100644 index b82ac5a1..00000000 --- a/tests/testthat/test-quarto_leanpub_prep.R +++ /dev/null @@ -1,28 +0,0 @@ -test_that("Setting Up Quarto Repo", { - dir <- download_ottr_template(dir = "inst/extdata", type = "quarto") -}) - -test_that("Tocless render for Quarto", { - # render_without_toc() - - # TODO: This should be functionalized and incorporated into the package - # curl -o make_screenshots.R https://raw.githubusercontent.com/jhudsl/ottr-reports/main/scripts/make_screenshots.R - # chapt_urls=$(Rscript --vanilla make_screenshots.R \ - # --git_pat ${{ secrets.GH_PAT }} \ - # --repo $GITHUB_REPOSITORY \ - # --output_dir resources/chapt_screen_images) -}) - - -test_that("Create Leanpub IFrames for Quarto", { - # ottrpal::bookdown_to_embed_leanpub( - # render = FALSE, \ - # chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \ - # make_book_txt = as.logical('${{needs.yaml-check.outputs.make_book_txt}}'), \ - # quiz_dir = NULL) - - # ottrpal::bookdown_to_embed_leanpub( - # render = FALSE, \ - # chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \ - # make_book_txt = as.logical('${{needs.yaml-check.outputs.make_book_txt}}')) -}) diff --git a/tests/testthat/test-quizzes.R b/tests/testthat/test-quizzes.R deleted file mode 100644 index a3c3b53d..00000000 --- a/tests/testthat/test-quizzes.R +++ /dev/null @@ -1,22 +0,0 @@ -test_that("Quiz checks", { - # Using good quiz md example - - quiz_path <- good_quiz_path() - good_quiz <- readLines(quiz_path) - good_quiz_specs <- parse_quiz(good_quiz) - good_quiz_checks <- check_all_questions(good_quiz_specs) - - # Using bad quiz md example - - bad_quiz <- readLines(bad_quiz_path()) - bad_quiz_specs <- parse_quiz(bad_quiz) - bad_quiz_checks <- check_all_questions(bad_quiz_specs) - - ## Make a temporary quiz directory - quiz_dir <- dirname(good_quiz_path()) - - ## Now check the quizzes in that directory - all_quiz_results <- check_quizzes(quiz_dir = quiz_dir) - - ottrpal::check_quizzes(quiz_dir = file.path(root_dir, "quizzes"), write_report = TRUE, verbose = TRUE) -}) diff --git a/tests/testthat/test-rendering.R b/tests/testthat/test-rendering.R deleted file mode 100644 index b9a1fa1a..00000000 --- a/tests/testthat/test-rendering.R +++ /dev/null @@ -1,30 +0,0 @@ -test_that("Rmd Rendering", { - dir <- download_ottr_template(dir = "inst/extdata", type = "rmd") - - bookdown::render_book("index.Rmd", output_format = "all") -}) - -test_that("Quarto Rendering", { - dir <- download_ottr_template(dir = "inst/extdata", type = "quarto") - - quarto::quarto_render(dir) - quarto::quarto_render(dir, - metadata = list(sidebar = F, toc = F), - quarto_args = c("--output-dir", "docs/no_toc/") - ) -}) - -test_that("Rmd Website Rendering", { - dir <- download_ottr_template(dir = "inst/extdata", type = "rmd") - - rmarkdown::clean_site(dir, preview = FALSE) - - rmarkdown::render_site(dir) -}) - - -test_that("Quarto Website Rendering", { - dir <- download_ottr_template(dir = "inst/extdata", type = "quarto") - - quarto::quarto_render(dir) -}) diff --git a/tests/testthat/test-rmd_leanpub_prep.R b/tests/testthat/test-rmd_leanpub_prep.R deleted file mode 100644 index 50352442..00000000 --- a/tests/testthat/test-rmd_leanpub_prep.R +++ /dev/null @@ -1,24 +0,0 @@ -test_that("Tocless render for Rmd", { - # render_without_toc() - - # TODO: This should be functionalized and incorporated into the package - # curl -o make_screenshots.R https://raw.githubusercontent.com/jhudsl/ottr-reports/main/scripts/make_screenshots.R - # chapt_urls=$(Rscript --vanilla make_screenshots.R \ - # --git_pat ${{ secrets.GH_PAT }} \ - # --repo $GITHUB_REPOSITORY \ - # --output_dir resources/chapt_screen_images) -}) - - -test_that("Create Leanpub IFrames for Rmd", { - # ottrpal::bookdown_to_embed_leanpub( - # render = FALSE, \ - # chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \ - # make_book_txt = as.logical('${{needs.yaml-check.outputs.make_book_txt}}'), \ - # quiz_dir = NULL) - - # ottrpal::bookdown_to_embed_leanpub( - # render = FALSE, \ - # chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \ - # make_book_txt = as.logical('${{needs.yaml-check.outputs.make_book_txt}}')) -})