Run unit tests.

Share:

Description

Run unit tests.

Usage

1
2
3
  RwordsegTest(TestPath = system.file(package = "Rwordseg", "unittests"),
    TestResult = NULL, ResultsType = c("html", "text"),
    testFileRegexp = "^runit\..+\.[rR]$")

Arguments

TestPath

Path of the folder which contains the test scripts.

TestResult

Name of the report file.

ResultsType

'html' or 'text'.

Details

Run the unit tests by RUnit package, and generate a html or text report.

Value

The results of function [RUnit]runTestSuite.

Author(s)

Jian Li <rweibo@sina.com>

Examples

1
2
3
4
5
## Not run: 
x <- RwordsegTest(TestResult = "Rwordseg_tests")
summary(x)

## End(Not run)