Just moved code from the testthat.R into the respective unit tests for the various objects. That way we keep the testthat file clean - and assure that the individual unit tests are not affected by the libraries loaded in the individual unit test files.
variables that would be shared/used in more than one unit test file should however go back to testthat.R - but I haven't seen any so far (?)
Just moved code from the testthat.R into the respective unit tests for the various objects. That way we keep the testthat file clean - and assure that the individual unit tests are not affected by the libraries loaded in the individual unit test files.
variables that would be shared/used in more than one unit test file should however go back to testthat.R - but I haven't seen any so far (?)