Learn R Programming

RTest (version 1.2.6)

RTest.execute: Function to generally execute a Test Case collection

Description

Function to generally execute a Test Case collection

Usage

RTest.execute(testcase.directory = list.dirs(find.package("RTest"),
  recursive = T) %>% grep(pattern = "xml-templates", value = T),
  f.pattern = "*.xml", project.name = "RTest Execution",
  project.details = "Example test exectuion",
  project.tester = "Example tester", report.file = tempfile(fileext =
  ".html"), ...)

Arguments

testcase.directory

(character) Location of the Test Case XML files

f.pattern

(character) An additional pattern to just search for specific files with certain names

project.name

(character) Name of the project mentioned in all cover pages

project.details

(character) Description of the project

project.tester

(character) Name of the Test executer

report.file

(character) Output file where to store the report

...

Additional arguments handed over to the exec,RTestCollection-method method

Value

No return value, but the command line output will show where to fund the report. Using the additional argument open=TRUE will open the report directly after execution

Examples

Run this code
# NOT RUN {
directory_with_tests <- list.dirs(find.package('RTest'),recursive=TRUE) %>%
        grep(pattern="xml-templates",value=TRUE)

RTest::RTest.execute(
 testcase.directory = directory_with_tests[1],
  open=FALSE,
 f.pattern = "RTest_TC-generic.xml"
)

# }

Run the code above in your browser using DataLab