-
Notifications
You must be signed in to change notification settings - Fork 114
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
WISH: Add option/argument to run through all tests although some give errors #140
Comments
I assume this is happening regardless of |
Thanks for pointer, using Next, the reason for tests failing under covr (pun not intended, but i's a good one) and not with Please feel free to create a separate issue for the above. Regarding my original post; what I would like to see is an option for |
…overage() is running, cf. r-lib/covr#140
I just ran into the |
@HenrikBengtsson Could you verify https://github.com/jimhester/covr/tree/libpaths fixes the issue you were seeing with the libpaths not being passed to the spawned process (I believe it should). Thanks! |
Thanks for this. I rerun the exact same build on Travis CI and it seems to go a bit further now. However, there might be a related problem with happens with using PSOCK cluster nodes with covr. In https://travis-ci.org/HenrikBengtsson/future/jobs/109668979#L2606, I get: Error : there is no package called ‘future’ The package test If my guesses are correct, something like the following would be a minimal example (but I don't have time to try it out right now): library("parallel")
cl <- makeCluster(2L) ## homogeneous=TRUE
clusterCall(cl, fun=function() { loadNamespace("<pkg-being-tested>") })
stopCluster(cl) I'm not sure if covr can handle this automagically; my guess is that I have to leave it at this for now, but thought it would be better to report at least something at this point. I'll let you know when/if I learn something new. |
I'd like to suggest to add an option/argument so that covr keeps running through all tests instead of stopping whenever a test fails. Something like
run_tests(..., on_error="warn")
.Why? I once in a while find that covr gives errors when
R CMD check
doesn't. If it occurs on my local machine, I can often either troubleshoot and find a fix, or simple skip the test whencovr
is loaded. However, when I cannot reproduce the problem locally and it appears on, say, Travis CI, it is complicated and tedious to troubleshoot via trial and error commit/pushing. Having an option to have covr run through all tests would help, because then you could see what other tests pass/fail, which helps out rule things and narrow in on the troubleshooting. See for instance https://travis-ci.org/HenrikBengtsson/future/jobs/101287469#L2564-L2567 (where the covr tests just stops which I assume is due to a test error).The text was updated successfully, but these errors were encountered: