@@ -2,6 +2,7 @@ test_that("activated cache brings speedup on style_file() API", {
22 local_test_setup()
33 skip_on_cran()
44 skip_on_covr()
5+ skip_during_parallel()
56 n <- n_times_faster_with_cache(
67 test_path(" reference-objects/caching.R" ),
78 test_path(" reference-objects/caching.R" ),
@@ -27,6 +28,7 @@ text <- c(
2728test_that(" activated cache brings speedup on style_text() API on character vector" , {
2829 skip_on_cran()
2930 skip_on_covr()
31+ skip_during_parallel()
3032 n <- n_times_faster_with_cache(
3133 text , text ,
3234 fun = style_text
@@ -37,6 +39,7 @@ test_that("activated cache brings speedup on style_text() API on character vecto
3739test_that(" activated cache brings speedup on style_text() API on character scalar" , {
3840 skip_on_cran()
3941 skip_on_covr()
42+ skip_during_parallel()
4043 text2 <- paste0(text , collapse = " \n " )
4144
4245 n <- n_times_faster_with_cache(
@@ -56,6 +59,7 @@ test_that("trailing line breaks are ignored for caching", {
5659 expect_equal(cache_info(format = " tabular" )$ n , 3 )
5760 skip_on_cran()
5861 skip_on_covr()
62+ skip_during_parallel()
5963 n <- n_times_faster_with_cache(text1 , text2 )
6064 expect_gt(n , 55 )
6165})
@@ -69,6 +73,7 @@ test_that("trailing line breaks are ignored for caching in one scalar", {
6973 expect_equal(cache_info(format = " tabular" )$ n , 3 )
7074 skip_on_cran()
7175 skip_on_covr()
76+ skip_during_parallel()
7277 n <- n_times_faster_with_cache(text1 , text2 )
7378 expect_gt(n , 55 )
7479})
@@ -85,14 +90,15 @@ test_that("trailing line breaks are ignored for caching in one scalar", {
8590 expect_equal(cache_info(format = " tabular" )$ n , 3 )
8691 skip_on_cran()
8792 skip_on_covr()
93+ skip_during_parallel()
8894 n <- n_times_faster_with_cache(text1 , text2 )
8995 expect_gt(n , 55 )
9096})
9197
9298test_that(" speedup higher when cached roxygen example code is multiple expressions" , {
9399 skip_on_cran()
94100 skip_on_covr()
95-
101+ skip_during_parallel()
96102 text_long <- c(
97103 " #' Roxygen" ,
98104 " #' Comment" ,
@@ -132,6 +138,7 @@ test_that("speedup higher when cached roxygen example code is multiple expressio
132138test_that(" no speedup when tranformer changes" , {
133139 skip_on_cran()
134140 skip_on_covr()
141+ skip_during_parallel()
135142 local_test_setup()
136143 t1 <- tidyverse_style()
137144 first <- system.time(style_text(text , transformers = t1 ))
@@ -145,6 +152,7 @@ test_that("unactivated cache does not bring speedup", {
145152 skip_on_cran()
146153 skip_on_covr()
147154 local_test_setup()
155+ skip_during_parallel()
148156 first <- system.time(style_file(test_path(" reference-objects/caching.R" )))
149157 second <- system.time(style_file(test_path(" reference-objects/caching.R" )))
150158 expect_false(first [" elapsed" ] / 4 > second [" elapsed" ])
0 commit comments