-
Notifications
You must be signed in to change notification settings - Fork 6
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
checks for tests? #150
Comments
Some notes from my side:
|
Plus important to realise that many packages only partly use |
for httptest2 one actually modifies setup.R, not the testthat file? |
I agree these checks are only for packages using testthat. For naked code it could be a note. It's useful as it could be code that could be moved to a helper file, and even if not it'd be something interesting for editors/reviewers to notice as it's a tricky thing. Maybe same with library? |
if a package uses a mix is it possible to isolate which test folder uses testthat? |
No, the package requires an additional
I'm not sure though, because that really would then be complying with the subjective views of effectively one person only (Hadley). There are other very prominent developers and R-core members who do not view that as "best practice". So I'm not even sure we should be systematically/automatically pointing out any divergence from r-pkgs recommendations? That book codifies one approach, but requiring that to be the only approach may be unnecessarily restrictive, I think.
In principle, yes. Even directly possibly to just use |
but for testthat it might be fine to try and apply the recs of testthat authors? If pkgcheck notified about these uses, it'd be interesting as their deviating from the "norm" means they are something relevant to look at while reviewing (compared to boring expectations in the tests). We could revert if we realize all submissions have a legitimate "different" testthat use. 😅 |
when reading hadley/r-pkgs#777 I was wondering whether there could be ckecks of
The text was updated successfully, but these errors were encountered: