You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't found an "official" way to detect from outside if testing infrastructure is present: uses_testthat() is not exported. On the other hand, test() fails in non-interactive mode if no testing infrastructure is present. So there seems to be no way to run tests if they exist, and do nothing if they don't. Am I missing anything?
I see two solutions:
Export uses_testthat()
Don't fail in test() in non-interactive mode if no infrastructure is present.
Which is better?
The text was updated successfully, but these errors were encountered:
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Sep 18, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I haven't found an "official" way to detect from outside if testing infrastructure is present:
uses_testthat()
is not exported. On the other hand,test()
fails in non-interactive mode if no testing infrastructure is present. So there seems to be no way to run tests if they exist, and do nothing if they don't. Am I missing anything?I see two solutions:
uses_testthat()
test()
in non-interactive mode if no infrastructure is present.Which is better?
The text was updated successfully, but these errors were encountered: