Skip to content

source helper scripts in test environment when running test_file #350

@jackwasey

Description

@jackwasey

I have test harness data and functions in a helper-base.R file in tests/testthat/, andtest_file seems to rely on this being sourced manually, whereas test_package sets up a clean test environment.

Sourcing helper-base.R is a work-around, but pollutes the global environment, and I think it would be more consistent and simpler for test_file to source it for the user in a test environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions