utils: Utility Functions

Description Usage Arguments

Description

Utility functions useful for package default behavior. 'pkg_test' returns the path to tests from the 'dbtest' package. 'pkg_config' returns the path to connection config from the 'dbtest' package. 'all_tests' returns the path to all .yml or .yaml files in a given directory. The default is to return all tests in the 'dbtest' package

Usage

1
2
3
4
5
6
7
pkg_test(file = "simple-tests.yml")

all_tests(dir = system.file("extdata", "tests", package = "dbtest"))

pkg_config(file = "config.yml")

pkg_skip(file = "skip-example.yml")

Arguments

file

optional The file to reference at the default location

dir

optional The directory for which to show all_tests


rstudio/dbtest documentation built on May 6, 2019, 10:47 a.m.