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
The default environment for source_test_helpers() changed from the global environment to the test environment. This is noticeable when I step through test files interactively. Unless I do source_test_helpers(..., env = globalenv()), nothing I define in my helper files is actually available.
I liked the old way better, but maybe there are good reasons for the change? In which case, this would be good to put into NEWS.md.
The text was updated successfully, but these errors were encountered:
The point was to make it consistent with the other source_*() functions. But I now think your problem should be resolved by devtools - could you please file an issue there? (if you haven't already)
The default environment for
source_test_helpers()
changed from the global environment to the test environment. This is noticeable when I step through test files interactively. Unless I dosource_test_helpers(..., env = globalenv())
, nothing I define in my helper files is actually available.I liked the old way better, but maybe there are good reasons for the change? In which case, this would be good to put into
NEWS.md
.The text was updated successfully, but these errors were encountered: