Package description

RTest

RTest: A XML-based Testing System For R Packages

Test execution

RTest.execute()

Function to generally execute a Test Case collection

Writing R data to xml

Functions for reading and writing Spark DataFrames.

xmlWriteData_data.frame()

Write a R 'data.frame' as XML Data of Type 'xmlReadData_data.frame'

xmlWriteData_list()

Write a R 'list' as XML Data of Type 'xmlReadData_list'

xmlWriteData_matrix()

Write a R 'matrix' as XML Data of Type 'xmlReadData_matrix'

xmlWriteData_params()

Write params for XML test cases 'xmlReadData_params'

xmlWriteData_variable()

Write a R 'constat' as XML Data of Type 'xmlReadData_variable'

xmlWriteData_vector()

Write a R 'vector' as XML Data of Type 'xmlReadData_vector'

Reading XML to R

Functions for reading and writing Spark DataFrames.

xmlReadData_data.frame()

Read XML Data From Type 'xmlReadData_data.frame' as R 'data.frame'

xmlReadData_image()

Read XML Data From Type 'xmlReadData_image' as R Variable

xmlReadData_list()

Read XML Data From Type 'xmlReadData_list' as R 'list' (DUMMY)

xmlReadData_text()

Read XML Data From Type 'xmlReadData_text' as R Variable

xmlReadData_to_list()

Read an unidentified List of Data Types from TestCase params

xmlReadData_variable()

Read XML Data From Type 'xmlReadData_variable' as R Variable

xmlReadData_vector()

Read XML Data From Type 'xmlReadData_vector' as R Vector

Writing a test case

Functions for writing a test case XML file

xmlWriteTest()

Write the Test section for a RTestCase

xmlWriteTest_data.frame_cellbycell()

Write XML Test Definition of Type 'RTestTest_data.frame_cellbycell'

xmlWriteTest_execution()

Write XML Test Definition of Type 'RTestTest_execution'

xmlWriteTest_list_nodebynode()

Write XML Test Definition of Type 'RTestTest_list_nodebynode'

xmlWriteTest_variable()

Write XML Test Definition of Type 'RTestTest_variable'

xmlWriteTest_vector_elementbyelement()

Write XML Test Definition of Type 'RTestTest_vector_elementbyelement'

xmlWriteContext()

Write the Opening (Header, Root-Tag) and Closing for a RTestCase

xmlWriteTestSpec()

Write the testpsec section for a RTestCase

xmlWriteSynopsis()

Write the Synopsis for a RTestCase

xmlWriteInputData()

Write the Input-Data section for a RTestCase

Internal testing functions

Functions that we use to compare values

test_returnValue_any()

Generically compare two values with RTest

test_returnValue_data.frame_cellbycell()

Tests a Standard R 'data.frame' Cell-By-Cell ('RTestTest_data.frame_cellbycell')

test_returnValue_data.frame_shape()

Tests a Standard R 'data.frame' by shape, rownames and colnames ('RTestTest_data.frame_shape')

test_returnValue_image()

Tests an image file with ImageMagick ('RTestTest_image')

test_returnValue_list_nodebynode()

Tests a Standard R 'list' Node-By-Node ('RTestTest_list_nodebynode')

test_returnValue_variable()

Tests a Standard R 'variable' ('RTestTest_vector_variable')

test_returnValue_vector_elementbyelement()

Tests a Standard R 'vector' Element-By-Element ('RTestTest_vector_elementbyelement')

Functions for examples

Functions we provide for example test cases

example_data_frame()

Function changing a data frame by adding a column

example_image()

Function returning the Roche logo as an image at tempdir

example_list()

Function returning a list with three values

example_list_large()

Function returning a list with three values and large DF

example_variable()

Function returning relative difference of X and Y

example_vector()

Function returning a character vector of length "rep"

testthat replacing functions

expect_silent_RTest()

Expect a function call to run silent

RTestCase-class

RTestCase()

Constructor for RTestCase

show(<RTestCase>)

Print Summary of the Test Case to Console

getID(<RTestCase>)

Get ID of the Test Case

getSynopsis(<RTestCase>)

Get Synopsis of the Test Case

getTestResult(<RTestCase>)

Get Result of Last Execution of the Test Case

getXMLSourceFileName(<RTestCase>)

Get File Name of the XML Input File of the Test Case

getExecDetails.html(<RTestCase>)

Create Detailed HTML Summary of the Last Execution of the Test Case

getExecSummary(<RTestCase>)

Summary of the Last Execution of the Test Case

getExecSummary.html(<RTestCase>)

Create HTML Summary of the Last Execution of the Test Case

getXMLSourcePath(<RTestCase>)

Get Path to the XML Input File of the Test Case

initializeTests(<RTestCase>)

Initialize the Test Slot for a Test Case.

execAdapter(<RTestCase>)

Execute the Adapter Function of the Test Case

execCache(<RTestCase>)

Execution Cache for Test Function

clearTest(<RTestCase>)

Clear Test Reporter and Test Cache of Last Test Case Execution

readXMLInputData(<RTestCase>)

Read Input Data of Test Case for Default XML Definitions

RTestCollection-class

RTestCollection()

Constructor for 'RTestCollection'

show(<RTestCollection>)

Show Summary of RTestCollection Instance

exec(<RTestCollection>)

Tests imported Test Cases

getExecStates(<RTestCollection>)

Execution Statues of TCs

getRTM(<RTestCollection>)

Get RTM for all executed test cases

getRTMInMatrixShape(<RTestCollection>)

Get RTM for all executed test cases in a matrix shape

getTC(<RTestCollection>)

Return Imported Test Case

getValidTCs(<RTestCollection>)

Get a List of TCs

importTC(<RTestCollection>)

Import Test Case from XML File

importTCsFromDir(<RTestCollection>)

Import all Test Cases from XML Files of a Directory

writeExecSummary.html(<RTestCollection>)

Write Summary of Last Test Case Executions as HTML