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

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

Function to generally execute a Test Case collection

Usage

1
2
3
4
5
6
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

Author(s)

Sebastian Wolf sebastian@mail-wolf.de

Examples

1
2
3
4
5
6
7
8
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"
)

RTest documentation built on Dec. 4, 2019, 5:07 p.m.