Skip to content

Set attach_testthat more selectively? #326

@MichaelChirico

Description

@MichaelChirico

In a package using {tinytest}, attach_testthat=TRUE by default is a bit of a distraction.

Maybe attach_testthat = dir.exists(file.path(path, "tests", "testthat")) is better?

{tinytest} is not uncommon:

Image

So another option is to cater specifically to tinytest: attach_testthat = !dir.exists(file.path(path, "inst", "tinytest"))

Or is this WAI and I just need to remember load_all(attach_testthat=FALSE) for such packages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions