UnitTest-class: Unit testing for developing R packages

Description Details Fields Author(s) Examples

Description

Unit testing for developing R packages

Details

Unit testing for developing R packages

Fields

pkg

character the name of the package

testDpath

character the absolute directory names where to look for test files. Default: <pkg>/tests

testFnameRegexp

character Regular expression for matching test file names. Default: *.R

testFuncRegexp

character Regular expression for matching test functions. Default: test.*

Author(s)

Xiaobei Zhao

Examples

1
2
3
4
5
6
## Not run: 
pkg <- 'Xmisc'
test.obj <- UnitTest$new(pkg=pkg)
test.obj$runme()

## End(Not run)

Xmisc documentation built on May 29, 2017, 9:58 p.m.

Search within the Xmisc package
Search all R packages, documentation and source code