check: Run the test cases in a test file

View source: R/check.R

checkR Documentation

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)

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

Value

The parsed test results for the suite

Examples

## Not run: 
check("tests/q1.R")

## End(Not run)

ucbds-infra/ottr documentation built on Feb. 24, 2024, 2:31 a.m.