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
Hi, I just noticed that code inside testthat::it (specifically with testthat::) does not have access to global variables when invoked with testthat::test_file() (or other runners). Sourcing the same file works fine. Using library(testthat) and just it works fine too. See examples below.
I agree that this seems like a bug, but since there's an obvious workaround (just use it() as we generally recommend), unfortunately I'm not going to have time to dig into it further.
Hi, I just noticed that code inside
testthat::it
(specifically withtestthat::
) does not have access to global variables when invoked withtestthat::test_file()
(or other runners). Sourcing the same file works fine. Usinglibrary(testthat)
and justit
works fine too. See examples below.testthat version: 3.2.0
library
variantFile
Output
::
variantFile
Output
The text was updated successfully, but these errors were encountered: