Skip to contents

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