test_sim_dir: Test simChef Ingredients

View source: R/run-tests.R

test_sim_dirR Documentation

Test simChef Ingredients

Description

test_sim_dir() wraps around testthat() from the test_dir package 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 init_sim_project().

Examples

## Not run: 
# run dgp-, method-, evaluator-, and visualizer-related tests
test_sim_dir()
## End(Not run)


Yu-Group/simChef documentation built on Jan. 11, 2025, 1:25 a.m.