Description Usage Arguments Methods
Run unit tests in a variety of settings. This is still very experimental.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | utest(x, ...)
## S4 method for signature 'function'
utest(x, run = TRUE)
## S4 method for signature 'character'
utest(x,
filter = "^runit.+\\.[rR]$", fun = "^test\\.", ...,
testdir = "tests", framework = c("RUnit", "testthat"),
quiet = Sys.getenv("RCMDCHECK") != "FALSE",
lib.loc = NULL)
## S4 method for signature 'RUnitTestSuite'
utest(x, ..., quiet = FALSE,
outdir = NULL)
|
x |
object to which a unit test is attached |
... |
extra arguments to allow extensions and are passed to the unit framework running funcitons. |
run |
a logical that indicates if the unit test should be run |
filter |
pattern to match files that contain the definition of the unit tests functions to run. |
fun |
patter to match the test functions to run. |
testdir |
directory where to look for the test files |
framework |
unit test framework |
quiet |
a logical that indicates if the tests should be run silently |
lib.loc |
path to a library where installed packages are searched for.
Used is of the form |
outdir |
output directory |
signature(x = "function")
: Run the unit test assoicated to a function.
signature(x = "character")
: Run a package test suite
signature(x = "RUnitTestSuite")
: Runs a RUnit test suite
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.