Learn R Programming

ottr (version 1.5.3)

check: Run the test cases in a test file

Description

Execute checks in a test suite and return the TestFileResult object from executing the test. Optionally prints results of the test to console.

Usage

check(test_file, test_env, show_results)

Value

The parsed test results for the suite

Arguments

test_file

Path to a test file

test_env

An environment against which to run tests

show_results

Whether to print the results to stdout

Examples

Run this code
if (FALSE) {
check("tests/q1.R")
}

Run the code above in your browser using DataLab