Skip to content

Commit 8af76c0

Browse files
committed
skip more on CRAN
1 parent d38218d commit 8af76c0

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

tests/testthat/test-downloads.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ if (suggests){
33

44
skip_if(Sys.which("pandoc") == "")
55
skip_if(is_fedora())
6+
skip_on_cran()
67

78
app <- shinytest2::AppDriver$new(app_dir = system.file("shiny", package = "shinyscholar"), name = "e2e_markdown")
89
app$set_inputs(tabs = "select")
@@ -48,6 +49,7 @@ if (suggests){
4849
test_that("{shinytest2} recording: e2e_table_download", {
4950

5051
skip_if(is_fedora())
52+
skip_on_cran()
5153

5254
app <- shinytest2::AppDriver$new(app_dir = system.file("shiny", package = "shinyscholar"), name = "e2e_table_download")
5355
app$set_inputs(tabs = "select")
@@ -66,6 +68,7 @@ if (suggests){
6668
test_that("{shinytest2} recording: e2e_plot_downloads", {
6769

6870
skip_if(is_fedora())
71+
skip_on_cran()
6972

7073
app <- shinytest2::AppDriver$new(app_dir = system.file("shiny", package = "shinyscholar"), name = "e2e_plot_downloads")
7174
app$set_inputs(tabs = "select")

tests/testthat/test-metadata.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ if (suggests){
9595

9696
skip_if(Sys.which("pandoc") == "")
9797
skip_if(is_fedora())
98+
skip_on_cran()
9899

99100
withr::with_temp_libpaths({
100101
upload_path <- list.files(system.file("extdata", "wc", package = "shinyscholar"),

tests/testthat/test-save_load.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ if (suggests){
22
test_that("{shinytest2} recording: e2e_empty_save", {
33

44
skip_if(is_fedora())
5+
skip_on_cran()
56

67
rerun_test("empty_save_test", list(save_path = save_path))
78
common <- readRDS(save_path)
@@ -11,6 +12,7 @@ if (suggests){
1112
test_that("{shinytest2} recording: e2e_save_scat", {
1213

1314
skip_if(is_fedora())
15+
skip_on_cran()
1416

1517
rerun_test("save_scat_test", list(path = raster_path, save_path = save_path))
1618
common <- readRDS(save_path)
@@ -23,6 +25,7 @@ if (suggests){
2325
test_that("{shinytest2} recording: e2e_save_hist", {
2426

2527
skip_if(is_fedora())
28+
skip_on_cran()
2629

2730
rerun_test("save_hist_test", list(path = raster_path, save_path = save_path))
2831
common <- readRDS(save_path)
@@ -34,6 +37,7 @@ if (suggests){
3437
test_that("{shinytest2} recording: e2e_load", {
3538

3639
skip_if(is_fedora())
40+
skip_on_cran()
3741

3842
app <- shinytest2::AppDriver$new(app_dir = system.file("shiny", package = "shinyscholar"), name = "e2e_load")
3943
app$set_inputs(introTabs = "Load Prior Session")
@@ -49,6 +53,7 @@ if (suggests){
4953
test_that("load can handle old common objects", {
5054

5155
skip_if(is_fedora())
56+
skip_on_cran()
5257

5358
common_class <- R6::R6Class(
5459
classname = "common",

tests/testthat/test-select_user.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if (suggests){
1212
test_that("{shinytest2} recording: e2e_select_user", {
1313

1414
skip_if(is_fedora())
15+
skip_on_cran()
1516

1617
rerun_test("select_user_test", list(raster_path = raster_path, save_path = save_path))
1718
common <- readRDS(save_path)
@@ -22,6 +23,7 @@ if (suggests){
2223
test_that("{shinytest2} recording: e2e_select_user_enter", {
2324

2425
skip_if(is_fedora())
26+
skip_on_cran()
2527

2628
rerun_test("select_user_test_enter", list(raster_path = raster_path, save_path = save_path))
2729
common <- readRDS(save_path)
@@ -32,6 +34,8 @@ if (suggests){
3234
test_that("Error messages reach logger and can be retrieved", {
3335

3436
skip_if(is_fedora())
37+
skip_on_cran()
38+
3539
app <- shinytest2::AppDriver$new(app_dir = system.file("shiny", package = "shinyscholar"), name = "e2e_select_user")
3640
app$set_inputs(tabs = "select")
3741
app$set_inputs(selectSel = "select_user")

0 commit comments

Comments
 (0)