View source: R/run_covr_skip_nstf.R
| restrict_test_paths_to_framework | R Documentation |
Filters a named list of candidate test directories (typically produced by
get_nstf_test_path()) down to the entry that corresponds to a requested
framework. If no usable mapping can be made, the input list is returned
unchanged.
restrict_test_paths_to_framework(test_path_list, framework)
test_path_list |
|
framework |
|
The function maps framework to a primary key in test_path_list
as follows:
"testthat" → "testthat"
"testit" → "testit" (falls back to
"nonstandard_testit_root" if "testit" is NULL)
"tests_base" → "base_tests_root"
"tinytest" → "tinytest"
For framework == "testit", if test_path_list[["testit"]] is
NULL and test_path_list[["nonstandard_testit_root"]] is present,
the latter is used instead. No directories are created or validated here; the
function only selects from the provided list.
list. Either:
a single-element named list containing only the resolved framework path (name is the selected key), or
the original test_path_list if framework is
NULL/empty, maps to an unknown key, or the resolved key is
absent in test_path_list.
get_nstf_test_path
Other nstf_utility:
check_covr_skip_testit(),
create_base_tests_coverage(),
create_nstf_covr_list(),
create_tinytest_coverage(),
get_nstf_test_path(),
get_source_test_mapping_nstf(),
run_covr_skip_nstf()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.