Skip to content

Commit

Permalink
test: skip parallel tests on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Oct 10, 2023
1 parent 35082b2 commit b6d0567
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/testthat/test-Rush.R
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ test_that("saving lgr logs works", {
# main instance and future workers ---------------------------------------------

test_that("workers are started", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -681,6 +682,7 @@ test_that("workers are started", {
})

test_that("workers are started with a heartbeat", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand All @@ -699,6 +701,7 @@ test_that("workers are started with a heartbeat", {
})

test_that("additional workers are started", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -730,6 +733,7 @@ test_that("additional workers are started", {
})

test_that("a worker is terminated", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -759,6 +763,7 @@ test_that("a worker is terminated", {
})

test_that("a local worker is killed", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -788,6 +793,7 @@ test_that("a local worker is killed", {
})

test_that("a remote worker is killed", {
skip_on_ci()
# FIXME: heartbeat is broken
skip_on_cran()
skip_if(TRUE)
Expand Down Expand Up @@ -821,6 +827,7 @@ test_that("a remote worker is killed", {
})

test_that("a segault on a local worker is detected", {
skip_on_ci()
skip_on_cran()
skip_on_os("windows")

Expand All @@ -847,6 +854,7 @@ test_that("a segault on a local worker is detected", {
})

test_that("a segault on a worker is detected via the heartbeat", {
skip_on_ci()
# FIXME: heartbeat is broken
skip_on_cran()
skip_if(TRUE)
Expand Down Expand Up @@ -875,6 +883,7 @@ test_that("a segault on a worker is detected via the heartbeat", {
})

test_that("evaluating a task works with future", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -916,6 +925,7 @@ test_that("evaluating a task works with future", {
})

test_that("evaluating tasks works with future", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -957,6 +967,7 @@ test_that("evaluating tasks works with future", {
})

test_that("a simple error is catched", {
skip_on_ci()
# FIXME: Not working in testthat environment
skip_if(TRUE)
skip_on_cran()
Expand Down Expand Up @@ -1010,6 +1021,7 @@ test_that("a simple error is catched", {
})

test_that("a lost task is detected", {
skip_on_ci()
# FIXME: check timings
skip_if(TRUE)
skip_on_cran()
Expand Down Expand Up @@ -1066,6 +1078,7 @@ test_that("a lost task is detected", {
})

test_that("blocking on new results works", {
skip_on_ci()
# FIXME: check timings
skip_if(TRUE)
skip_on_cran()
Expand All @@ -1090,6 +1103,7 @@ test_that("blocking on new results works", {
})

test_that("wait for tasks works when a task gets lost", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand All @@ -1109,6 +1123,7 @@ test_that("wait for tasks works when a task gets lost", {
})

test_that("saving lgr logs works", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -1140,6 +1155,7 @@ test_that("saving lgr logs works", {
# main instance and script workers ---------------------------------------------

test_that("worker can be started with script", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -1178,6 +1194,7 @@ test_that("worker can be started with script", {
})

test_that("evaluating tasks works with script", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -1211,6 +1228,7 @@ test_that("evaluating tasks works with script", {
})

test_that("packages are available on the worker", {
skip_on_ci()
skip_on_cran()

config = start_flush_redis()
Expand Down Expand Up @@ -1243,6 +1261,7 @@ test_that("packages are available on the worker", {
})

test_that("globals are available on the worker", {
skip_on_ci()
# FIXME: Not working in testthat env
skip_if(TRUE)
skip_on_cran()
Expand Down

0 comments on commit b6d0567

Please sign in to comment.