Skip to content

Provide way to determine if execution is via testthat::test_*() #631

@jennybc

Description

@jennybc

Can testthat provide a way to determine if execution is inside testthat::test_*()? This would be useful when running tests semi-interactively, such as test(filter = "foo") in the Console:

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    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