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 package I'm writing tests for reads local config files during .onLoad(), but this behaviour needs to be skipped during testing (config can be also be done explicitly after loading).
I thought to make it conditional on an option read during .onLoad(), (details here) but I can't see a way to make testthat set the option in the test env before the package is loaded.
Would it be possible to enable options to be set in the test env before loading, or is there a better way to skip such behaviour during testing?
The text was updated successfully, but these errors were encountered:
The package I'm writing tests for reads local config files during .onLoad(), but this behaviour needs to be skipped during testing (config can be also be done explicitly after loading).
I thought to make it conditional on an option read during .onLoad(), (details here) but I can't see a way to make testthat set the option in the test env before the package is loaded.
Would it be possible to enable options to be set in the test env before loading, or is there a better way to skip such behaviour during testing?
The text was updated successfully, but these errors were encountered: