Description Usage Arguments Value Examples
View source: R/Testproject_Functions.R
Run test projects
1 2 3 4 5 6 7 8 9 10 11 12 |
dir_tests |
A vector of character strings. Paths to individual test projects. |
dir_prj_tests |
A character string. Path to overall test projects folder. |
dir_ref |
A character string. Path to folder with reference database. |
dir_prev |
A character string. Paths to directory that should be set when function returns. |
which_tests_torun |
An integer vector. Indices of |
delete_output |
A logical value. If |
force_delete_output |
A logical value. If |
make_new_ref |
A logical value. If |
write_report_to_disk |
A logical value. If |
verbose |
A logical value. |
A list with two elements:
A data.frame where each row represents the outcomes of a
test project. The columns return elapsed time in seconds
elapsed_s
, four logical values has_run
,
has_problems
, made_new_refs
, deleted_output
, and
one character string referenceDB
of the reference database name
against which this run of the test project was compared.
A character vector describing differences between
test and reference databases including the output of a call to
compare_test_output
1 2 3 4 5 6 7 8 | ## Not run:
# Run test project 4 inside development version of package
# Assume that working directory is `tests/test_data/TestPrj4/`
if (file.exists("SFSW2_project_code.R")) {
res <- run_test_projects(dir_tests = ".", delete_output = TRUE)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.