-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parallel testing subdirs throws error (test_subdir
, test_integration
, ...)
#18
Comments
test_subdir
, test_integration
, ...)test_subdir
, test_integration
, ...)
I can now confirm that providing the testthat::test_dir(
file.path(usethis::proj_get(), testthat::test_path(), "integration_tests"),
package = "pkg_name"
) |
Thanks! I'll look into it asap. |
So this is fixed now... Is it vital to deploy this to CRAN soon? I probably have to fix #19 as well before submitting a new CRAN release as well. |
Awesome! 🎉 |
I can´t use parallel testing (introduced by testthat 3) with testthis when testing subdirs.
E.g. testing dir
/testthat/integration_tests
withtest_integration()
within my R-Package throws this error (see reprex at the end):This problem is already discussed in testthat #1216 with the conclusion that the
package
argument should be specified intestthat::test_dir
which is called bytestthis::test_subdir
under the hood.As far as I see, this solution don´t works here as
package
will not be passed on to testthat.Reprex
Add this lines to
DESCRIPTION
to enable parallel testing (>= testthat 3) which should be enough to reproduce the error.The text was updated successfully, but these errors were encountered: