Closed kyle-messier closed 3 months ago
codecov.io and badge is added @dzilber you need to utilize the testthat package to start a test/ folder with test. The goal is 💯 coverage.
@dzilber Here is an example of methodological paper (GP+Boosting) their corresponding tests https://github.com/fabsig/GPBoost/tree/master/R-package/tests/testthat
@dzilber updating with a new protocol to view the coverage report since we don't get it with codecov.io anymore
The covr::report function doesn't show all the coverage so it is hard to tell what I am missing. @kyle-messier is there another way to see the coverage report line-by-line? If not I may close this ticket.
I thought that function creates the line-by-line report, so I'm not sure what to do. You could try Rstudio Add-in feature to run covr report().
Checking the open issues in covr, I found that they don't run the snapshot tests so the report shows those pieces of code as being untested. However, running devtools::test_coverage() does create an accurate report, so I will use that.
add codecov.io (kyle) writing test (Daniel)