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

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
2
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 (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 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.

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

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

Author(s)

Kornelius Rohmeyer rohmeyer@small-projects.de

Examples

1
2
3
4
5
6
## Not run: 
unitTestsForGMCP()
unitTestsGMCP(extended=TRUE, java=TRUE, interactive=TRUE, outputPath="~/RUnitTests")


## End(Not run)

gMCP documentation built on May 2, 2019, 6:07 p.m.