testsuite.R

#!/usr/bin/env Rscript

################################################################################
# Test Suite
################################################################################

################################################################################
# External dependencies
################################################################################

library(logging)
library(RUnit)

################################################################################
# Random Seed
################################################################################

set.seed(1994) # a good year for Brazil

################################################################################
# Logging configuration
################################################################################

basicConfig()

################################################################################
# Suite Definition and Execution
################################################################################

testsuite <- defineTestSuite("testsuite",
                             dirs="test/",
                             testFileRegexp="^.+_test.R$")
res <- runTestSuite(testsuite)

print(res)
htssouza/predictoR documentation built on May 17, 2019, 6:16 p.m.