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")

testthat documentation built on May 29, 2024, 9:38 a.m.