develop_test: Develop Unit Testing for a Code File

View source: R/develop_test.R

develop_testR Documentation

Develop Unit Testing for a Code File

Description

Looking at the output of covr::zero_coverage, I want to open a code file an 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()


fritools documentation built on Nov. 19, 2023, 1:06 a.m.