tests/runTestSuite.R

if(require(RUnit, quietly = TRUE)) {
  library(COMMUNAL)
  #runTestFile(file.path(.path.package(package="COMMUNAL"), "inst/tests/unittest.R"))
  testSuite <- defineTestSuite("COMMUNAL-test", dirs=file.path(path.package(package="COMMUNAL"), "tests"),
                               testFileRegexp = "^unittest.R", testFuncRegexp = "^test.+")
  testResult <- runTestSuite(testSuite)
  printTextProtocol(testResult)
}

Try the COMMUNAL package in your browser

Any scripts or data that you put into this service are public.

COMMUNAL documentation built on May 29, 2017, 6:36 p.m.