This function, similar to testthat::test_path()
, is designed to work both
interactively and during tests, locating files in the tests/
directory.
Arguments
- ...
Character vectors giving path component. each character string gets added on to the path, e.g.,
vcr_test_path("a", "b")
becomestests/a/b
relative to the root of the package.
Examples
if (interactive()) {
vcr_test_path("fixtures")
}