generic: Generic test adapter Method

Description Arguments Value Author(s) See Also Examples

Description

Generic test adapter Method

Arguments

object

(object) The RTestCase-class object

inputData

(list) List of input values

execCache

(list) list of already executed tests and their return values

xmlDef

(xmlNode) xmlNode of the Test case

package

(character) Name of the package to be tested

...

additional values can be given from execAdapter

Value

(list)

Author(s)

Sebastian Wolf sebastian@mail-wolf.de

See Also

RTestCase-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
options("RTest_verbose" = TRUE)

testCollection <- new("RTestCollection",
    project.name    = "RTest Vignette",
    project.details = "Example test exectuion",
    tester          = "Example tester",
    test.start      = format(Sys.time(), "%Y-%m-%d %H:%M:%S"))

TCDir <- paste0(find.package("RTest"),"/xml-templates")

testCollection <- RTest::importTCsFromDir(testCollection,
    xml.dPath = TCDir,f.pattern  = "RTest_TC-02.xml")


outf <- tempfile(fileext=".html")

funct_02 <<- function(data, mult) {   cbind(data, "sum" = apply(data, 1, sum)*mult) }
environment(funct_02) <- asNamespace('RTest')

testCollection <- RTest::exec(testCollection, out.fPath = outf, open=FALSE)

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