Learn R Programming

gMCP (version 0.8-5)

unitTestsGMCP: Run the R unit (and optional the JUnit) test suite for gMCP

Description

Runs the R unit (and optional the JUnit) test suite for gMCP and prints the results.

Usage

unitTestsGMCP(extended=FALSE, java=FALSE, interactive=FALSE, 
                junitLibrary, outputPath)

Arguments

extended
If TRUE (or if the environment variable GMCP_UNIT_TESTS equals "extended" or "all") an extended version of the R unit test suite for gMCP will be used. The run will take significantly longer time.
java
If TRUE the GUI and its logic is tested with JUnit tests. You need JUnit 4 classes in the classpath or specify the path to a JUnit 4 jar file via the parameter junitLibrary.
interactive
If TRUE the interactive part of the RUnit tests is run. The user have to look at results and answer questions.
junitLibrary
A character String specifying the path to a JUnit 4 jar file to run the JUnit tests. You can download it from http://www.junit.org/. Alternatively you can use the environment variable GMCP_JUNIT_LIBRARY to specify the path.
outputPath
During the RUnit tests files maybe produced at this location. If missing the current working directory is used if nothing else is specified in the environment variable GMCP_UNIT_TEST_OPATH.

Value

  • None of interest so far - the function prints the results to the standard output. (Perhaps in future versions a value will be returned that can be processed by the GUI.)

Examples

Run this code
unitTestsForGMCP()
unitTestsGMCP(extended=TRUE, java=TRUE, interactive=TRUE, outputPath="~/RUnitTests")

Run the code above in your browser using DataLab