Learn R Programming

wyz.code.offensiveProgramming (version 1.1.24)

runTestCase: Run test cases

Description

Run specified test cases under the given evaluation mode

Usage

runTestCase(object_o_1, testCaseIndexes_i, evaluationMode_o_1 = EvaluationMode())

Value

A list with two names

raw

a list with one entry for each test ran, holding all data and metadata related to the test

synthesis

a summary data.table that allows to see at a glance all the tests results. Also eases comparisons of results between various evaluation modes.

Arguments

object_o_1

The R object to consider

testCaseIndexes_i

a vector of numbers identifying the test cases to run

evaluationMode_o_1

the evaluation mode to use. see EvaluationMode

Author

tools:::Rd_package_author("wyz.code.offensiveProgramming")

Maintainer: tools:::Rd_package_maintainer("wyz.code.offensiveProgramming")

See Also

Refer to defineEvaluationModes.

Examples

Run this code
##---- typical case ----
library('data.table')
source(system.file('code-samples/both-defs/good/full/AdditionTCFI_G1.R',
                   package = 'wyz.code.offensiveProgramming'))
em <- EvaluationMode('type_checking_enforcement')
runTestCase(AdditionTCFI_G1(), c(3, 5, 7), em)

Run the code above in your browser using DataLab