And my working dir is set to
C:/dev/r/packages/my_package_name
When I run devtools::test(), testthat::test_package("my_package_name"), or testthat::test_local() , tests run fine.
When I run testthat::test_check("my_package_name") I get the following error:
Error in `test_dir()`:
! No test files found
Have tested on multiple machines and tried moving my package into different directories and no luck. Session info:
My test infrastructure is set thusly (created via
usethis::use_testthat
), and I haven't touched any code insidetestthat.R
:And my working dir is set to
C:/dev/r/packages/my_package_name
When I run
devtools::test()
,testthat::test_package("my_package_name")
, ortestthat::test_local()
, tests run fine. When I runtestthat::test_check("my_package_name")
I get the following error:Have tested on multiple machines and tried moving my package into different directories and no luck. Session info:
Similar issue to https://github.com/r-lib/testthat/issues/205, but moving the tests into the
tests/
directory doesn't fix in my case.Thanks for the help.