Learn R Programming

gMCP (version 0.8-17)

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
)

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.)

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 (or if the environment variable GMCP_UNIT_TESTS equals "java" or "all") 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 (or if the environment variable GMCP_UNIT_TESTS equals "interactive" or "all") 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 https://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. Also the log of the results of the test suite is saved in this place.

Author

Kornelius Rohmeyer rohmeyer@small-projects.de

Details

The environment variable GMCP_UNIT_TESTS may be used to specify which unit tests should run: "extended", "interactive", "java" or a combination of these separated by comma (without blanks). A short cut for all three is "all".

Examples

Run this code


if (FALSE) {
unitTestsGMCP()
unitTestsGMCP(extended=TRUE, java=TRUE, interactive=TRUE, outputPath="~/RUnitTests")

}


Run the code above in your browser using DataLab