runTestFile {tinytest2JUnit}R Documentation

Internal wrapper arround tinytest::run_test_file

Description

Internal wrapper arround tinytest::run_test_file() that records the test duration and catches uncaught errors and logs the stacktrace of where the error occured.

Usage

runTestFile(file, ...)

Arguments

file

character(1) test file to run.

...

arguments passed on to tinytest::run_test_file()

Details

The response is a subclass of the tinytests object called: tinytests2Junit object which captures additional info for the reporting to JUnit:

The caught error is turned into a subclass uncaught-error of tinytest. This is implementation detail and only to be understood by constructJUnitTag.

If an error occured it is captured and uncaught-error object (subclass of tinytest) is returned in the tinytests object. This tinytest object represents a "failed" tests that will get reported as an Error in the JUnit. Various aspects of the error are also captured like the the stacktrace.

Value

a tinytests2JUnit object (being a subclass of tinytest object).


[Package tinytest2JUnit version 1.1.2 Index]