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 |
|
... |
arguments passed on to |
Details
The response is a subclass of the tinytests
object called: tinytests2Junit
object which captures additional info for the reporting to JUnit:
Duration to run the file.
Timestamp when the test was run.
hostname of the computer where it was ran on.
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).