This 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
)

Arguments

functions_dir

The directory path containing function scripts.

tests_dir

The directory path containing test scripts.

Value

Does not return a value; outputs coverage report.

Examples

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