You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I have test harness data and functions in a
helper-base.R
file intests/testthat/
, andtest_file
seems to rely on this beingsource
d manually, whereastest_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 fortest_file
to source it for the user in a test environment.The text was updated successfully, but these errors were encountered: