-
Notifications
You must be signed in to change notification settings - Fork 316
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
Feature request: Add recursive search for test files #916
Comments
Personally I don't think the added complexity of this is worthwhile. According to Writing R Extensions the only acceptable subdirectories are 'unix' and 'windows' for platform specific code.
I think in general there are better ways to have OS specific code then relying on this feature. |
The issue is that, when you have very rich package with a lots of functions and R source files, the policy about having no sub-directories in |
I'm sorry @jimhester but I think you didn't get the point (or I didn't understand your answer). @gdurif asked for the ability to recursively search test files into This could be simply done by adding a |
Thanks for the reformulation @DDorch, it is exactly what I maint. I should not have mentioned the R source directory since it is a different and independent issue. |
provides an example of why this can be practically pretty important. we'd like to split up a test file into a dozen or so "child" files to get better performance in parallel. this will pollute the testthat/ directory... somehow allowing nesting seems to me a much more natural solution. alternatively, offering a more flexible API in |
Hi,
a great feature would be to add recursive search on the directory
test/testthat
(e.g. when callingtestthat::test_dir
like indevtools::test
ordevtools::check
), so that it would be possible to organize the test directory properly and make its structure correspond to the R source file organization in theR
directory (where you can put sub-directories by using theCollate:
field in theDESCRIPTION
file).Thanks in advance
The text was updated successfully, but these errors were encountered: