Skip to content

[Testing] Poor parallelism of test-roxygen-examples-complete.R #1105

Description

@MichaelChirico

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions