eval_test_code: Evaluate the test code file

View source: R/evaluate_test_code.R

vt_run_test_code_fileR Documentation

Evaluate the test code file

Description

Evaluate the test code file

Turn test code results data.frame into kable output

Usage

vt_run_test_code_file(file, test_env = new.env(), ..., ref = vt_path())

vt_kable_test_code_results(results, format = vt_render_to())

Arguments

file

full path to test code file.

test_env

environment to perform tests in

...

argument passed to knitr::kable()

ref

reference path to use. Defaults to vt_path()

results

results data.frame from vt_run_test_code_file()

format

passed to knitr::kable

Value

a kable with variables: Test, Expected, Results, Pass/Fail. Suitable for including in validation report

kableExtra object with formatting


phuse-org/valtools documentation built on Nov. 10, 2024, 1:36 a.m.