-
Notifications
You must be signed in to change notification settings - Fork 115
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
covr fails because testthat fails because lintr fails because it ignores .lintr
#253
Comments
I was able to reproduce this issue in a minimal package:
I did my best to make this as simple, self-contained and comprehensible as possible: The issue gets clear by comparing mschilli87/testCovrVsLintr#1 and mschilli87/testCovrVsLintr#2:
The only difference betwen those two pull requests is mschilli87/testCovrVsLintr@faa5be7. edit: Correction: The tests actually pass in mschilli87/testCovrVsLintr#2 (when run by |
The issue is the |
Thanks a lot @jimhester!
I still see two issues with this solution:
The first point could well be my mistake in searching for a solution and otherwise would probably better be addresses separately (as a The second point however IMHO creates the potential for further problems (when someone updates Best, |
Hi all, I had the same issue and kept searching for a solution :) I think a good solution would be for lintr package to search in the root folder and in the inst folder for a .lintr file ? Meanwhile I went with the two files solution... cheers, |
Symlinks work fine cross platform, just symlink to the file in inst/ |
In this case, all that's left for me to complain about is that either the symlinking should be recommended in the README or (even better) @BenoitLondon's suggestion could be implemented. @jimhester: If you are fine with allowing just |
Hi @jimhester,
I am not 100% if this is a
covr
orlintr
issue but I have the following problem:I run
testthat
test including linting withlintr
to ensure proper style.There are a few linters I don't want to run (as I break their style suggestions willingly).
Those, I disable through a
.lintr
file.Without
covr
this works just fine (thus thiscovr
issue).If, for the same repository, I add
covr
(without linting), it works, too (thus maybe alintr
issue)?However, if I enable both
covr
&lintr
,testthat
tests run successfully (incl. linting, but ignoring the linters specified in.lintr
), butcovr
fails and @lintr-bot complains about the disabled linters.I tracked this down to
coveralls()
running the tests (incl. linting) which fail, aslintr
complains about breaking the disabled linters.I'm working on a minimal working example to better demonstrate the issue, but maybe this is already enough to help me.
Best,
Marcel
The text was updated successfully, but these errors were encountered: