tests/AAAtest-all.R

if (require("testthat")) {
    pkg <- "McMasterPandemic"
    require(pkg, character.only = TRUE)
    print(sessionInfo())
    test_check(pkg, reporter = "summary")
    print(warnings()) ## TODO? catch most of these by expect_warning(..)
} else {
    warnings(
        "Package 'testthat' not available, cannot run unit tests for package",
        sQuote(pkg)
    )
}
bbolker/McMasterPandemic documentation built on Aug. 25, 2024, 6:35 p.m.