infrastructure necessary for devtools::test AND CRAN #167
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With v0.3.1, we deleted the setup and teardown files necessary for
devtools::test()
in favor of clearing issues those files caused for the CRAN testing process. However, with the same if statements added elsewhere in the unit tests (same code asdevtools::skip_on_cran
) wrapping these files, we should be able to satisfy both.When testing on r-devel, I do not see test packages loading. This is a good sign. Here's the log:
Notice only 1 unit test and no loading of test packages, as expected. Also notice the two empty strings printed by the setup and teardown files respectively.
At the same time,
devtools::test()
runs locally:Notice the two "true"'s created by the setup and teardown files respectively.