Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
develop unit tests and indicate test coverage #139
The first answer here is great: http://stackoverflow.com/questions/90002/what-is-a-reasonable-code-coverage-for-unit-tests-and-why
Specific code can be excluded from testing: see https://github.com/jimhester/covr#exclusions
Testing graphical/plot outputs: see this StackOverflow question
## interactive session library(covr) library(shiny) coverage <- package_coverage(type="all") shine(coverage)
## non-interactive # NOTE: some code may error due to namespace/environment issues # because of this, print more info to help with debugging Rscript -e 'library(covr); package_coverage(quiet = FALSE); devtools::session_info()'