View source: R/RtestingHelpers.R
runTests | R Documentation |
Runs tests in a folder in a separate R session.
runTests(
testsFolder = firstDef(options("testme")$testme$testsFolder, "./Rtests"),
expectationsFolder = options("testme")$testme$expectationsFolder,
sourceFiles = options("testme")$testme$sourceFiles,
isolateSession = TRUE,
useGit = TRUE
)
testsFolder |
Folder to be tests. Default folder is taken from ‘options(’testme')$testme$testsFolder'. |
expectationsFolder |
Folder where expectations are stored. Default folder is taken from ‘options(’testme')$testme$expectationsFolder'. |
sourceFiles |
pathes to files that should be sourced prior to running the tests. These would typically hold initialization code. |
isolateSession |
boolean to indicate whether a new R session should be started (using 'Rscript') or whether to run tests in the current R session |
useGit |
logical to indicate whether test vivifications should be commited |
returns 0 on success, value greater 0 if tests failed
## Not run:
runTests()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.