NIEHS / RGCA

Reflected Generalized Concentration Addition approach for prediction of combined chemical mixtures responses. See `citation` for appropriate citation in using this package.
https://niehs.github.io/RGCA/
0 stars 0 forks source link

test-coverage #7

Closed kyle-messier closed 3 months ago

kyle-messier commented 8 months ago

add codecov.io (kyle) writing test (Daniel)

kyle-messier commented 8 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.

kyle-messier commented 6 months ago

@dzilber Here is an example of methodological paper (GP+Boosting) their corresponding tests https://github.com/fabsig/GPBoost/tree/master/R-package/tests/testthat

kyle-messier commented 4 months ago

@dzilber updating with a new protocol to view the coverage report since we don't get it with codecov.io anymore

dzilber commented 3 months ago

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.

kyle-messier commented 3 months ago

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().

dzilber commented 3 months ago

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.