tinytest_roclet: Roclet: make tinytest test-files.

View source: R/tinytest_roclet.R

tinytest_rocletR Documentation

Roclet: make tinytest test-files.

Description

This roclet is a workhorse of roxytest, producing the tinytest test files specified.

Generally you will not call this function directly but will instead use roxygen2::roxygenise() specifying this roclet.

Usage

tinytest_roclet()

Value

A roclet to be used e.g. with roxygen2::roxygenise()

See Also

Other roclets: param_roclet, examples_roclet, return_roclet, testthat_roclet, namespace_roclet, rd_roclet, vignette_roclet.

Other roclets: examples_roclet(), param_roclet(), return_roclet(), testthat_roclet()

Examples

x <- "#' @tests\n#' expect_equal(2, 2)\nNULL\n"
cat(x)
o <- roxygen2::roc_proc_text(tinytest_roclet(), x)
cat(o$tests[[1]])


roxytest documentation built on Jan. 11, 2023, 5:14 p.m.