develop_test {fritools}R Documentation

Develop Unit Testing for a Code File

Description

Looking at the output of covr::zero_coverage, I want to open a code file and the corresponding unit testing file.

Usage

develop_test(file, force_runit = FALSE, force_tiny = TRUE)

Arguments

file

The path to the code file, assuming the working directory to be the root of an R package under development.

force_runit

If there is no corresponding RUnit test file: create one?

force_tiny

If there is no corresponding tinytest test file: create one?

Value

Invisibly NULL.

See Also

Other test helpers: get_boolean_envvar(), get_run_r_tests(), is_cran(), is_r_cmd_check(), is_running_on_fvafrcu_machines(), is_running_on_gitlab_com(), run_r_tests_for_known_hosts(), set_run_r_tests()

Other file utilities: clipboard_path(), delete_trailing_blank_lines(), delete_trailing_whitespace(), file_copy(), file_modified_last(), file_save(), find_files(), get_lines_between_tags(), get_mtime(), get_unique_string(), grep_file(), is_files_current(), is_path(), paths, search_files(), split_code_file(), touch()


[Package fritools version 4.3.0 Index]