-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some tests were calling `orderly_run` without an `envir` parameter, which ends up running the report in the global environment. This pollutes that namespace and might affect subsequent tests. One particular issue I was hitting was a test depending on the global `data` name from `utils`, while other tests were defining a global variable with that (unfortunately very common) name. I've added a `envir = new.env()` parameter to all the `orderly_run` calls I could find, and changed the test that depended on `data` to use the fully qualified name `utils::base`. Running the whole test suite now leaves an unmodified global environment: ```r ls() # character(0) devtools::test() ls() # character(0) ```
- Loading branch information
Showing
4 changed files
with
33 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters