Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upinfrastructure necessary for devtools::test AND CRAN #167
Conversation
Codecov Report
@@ Coverage Diff @@
## master #167 +/- ##
=======================================
Coverage 84.69% 84.69%
=======================================
Files 10 10
Lines 915 915
=======================================
Hits 775 775
Misses 140 140
Continue to review full report at Codecov.
|
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.