use_tester: Use a tester function

Description Usage Arguments Value See Also

View source: R/use_test_subdir.R

Description

Quickly create an R script that contains a function for running all tests in a predefined directory. This function powers the make_tester option of use_test_subdir() and you will likely not need to run it manually.

Usage

1
2
3
4
5
use_tester(
  path,
  ignore = TRUE,
  tester_path = file.path("R", "testthis-testers.R")
)

Arguments

path

character scalar. Name of the subdirectory of ‘tests/testthat/’ for which to create a tester function.

ignore

logical scalar. Add tester_path to ‘.Rbuildignore’?

tester_path

logical scalar. Path to the R script file in which to store the tester functions

Value

TRUE on success (invisibly).

See Also

Other infrastructure: use_test_subdir(), use_testdata()


testthis documentation built on April 14, 2020, 6:23 p.m.