Skip to contents

test_sim_dir() wraps around testthat::test_dir() to run all dgp-, method-, evaluator-, and visualizer-related tests.

Usage

test_sim_dir()

Details

This function only works if the simulation study is set up as an R project and if it is run when this R project is active. Additionally, tests must be stored in sub-directories whose names match those suggesting in the "Setting Up Your Simulation" vignette. These details are conveniently taken care of when a simulation study is set up using create_sim().

Examples

if (FALSE) {
# run dgp-, method-, evaluator-, and visualizer-related tests
test_sim_dir()}