R/utility_functions.R
test_source_fun_run_tests_rep_coverage.RdThis main function sources R scripts from a specified functions directory, runs test files from a tests directory, and generates a test coverage report. It stops execution if no function files are found and issues a warning if no test files are found.
test_source_fun_run_tests_rep_coverage(
functions_dir,
tests_dir,
print_report = FALSE
)Does not return a value; outputs coverage report.
test_source_fun_run_tests_rep_coverage("relative_path/to/functions", "relative_path/to/tests")
#> Error in test_source_function_files(functions_dir): No R scripts found in relative_path/to/functions