Closed nealrichardson closed 3 years ago
Merging #51 (0c2e7db) into master (96e9ea6) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #51 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 435 445 +10
=========================================
+ Hits 435 445 +10
Impacted Files | Coverage Δ | |
---|---|---|
R/find-redactor.R | 100.00% <100.00%> (ø) |
|
R/find-requester.R | 100.00% <100.00%> (ø) |
|
R/vignette.R | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 96e9ea6...0c2e7db. Read the comment docs.
Awesome! Any wisdom to add to https://github.com/hadley/r-pkgs/issues/483? :slightly_smiling_face:
Fixes #47. You can now run tests interactively with
devtools::test()
.The issues were:
public()
doesn't really work when you've loaded the package withpkgload::load_all()
because everything is put in the global environment, so we can't test that it catches when you try to call unexported functions. One skip added.pkgload
is also loaded (as a special case so that you can develop a redactor for your package interactively). This is fine when running the tests withoutdevtools
, but when you do,pkgload
is on the search path so the logic was wrong (and you can't detachpkgload
as one of the teardowns tried.)devtools::test()
to pass, a second run in the same R process would fail.I've also added a GitHub Actions job that runs the tests with
devtools::test()
(twice, in fact) so that we don't regress on this.cc @maelle @jonkeane