testthat_examples: Retrieve paths to built-in example test files

View source: R/example.R

testthat_examplesR Documentation

Retrieve paths to built-in example test files

Description

testthat_examples() retrieves path to directory of test files, testthat_example() retrieves path to a single test file.

Usage

testthat_examples()

testthat_example(filename)

Arguments

filename

Name of test file

Examples

dir(testthat_examples())
testthat_example("success")

r-lib/testthat documentation built on Feb. 18, 2024, 8:59 p.m.