I think this file would best be split up into many files to support parallelism. As it stands, this test (test_that("analogous to test-roxygen-examples-complete")) takes 5x longer than any other test_that() units in the suite.
That means the shard stuck with this test is going to take much longer than all the others.
Ideally, each of these:
expect_warning(test_collection(
"roxygen-examples-complete", "^1[^1234567890]",
transformer = style_text
), NA)
would be in a separate file. I'm not sure the easiest way to accomplish this from an ongoing maintenance PoV.
NB: using different test_that() for each won't help since testthat parallelizes by file:
https://testthat.r-lib.org/articles/parallel.html
I think this file would best be split up into many files to support parallelism. As it stands, this test (
test_that("analogous to test-roxygen-examples-complete")) takes 5x longer than any othertest_that()units in the suite.That means the shard stuck with this test is going to take much longer than all the others.
Ideally, each of these:
would be in a separate file. I'm not sure the easiest way to accomplish this from an ongoing maintenance PoV.
NB: using different
test_that()for each won't help since testthat parallelizes by file:https://testthat.r-lib.org/articles/parallel.html