run_tests: Test a source package

View source: R/validate-tests.R

run_testsR Documentation

Test a source package

Description

This is an internal function called by validate_tests()

Usage

run_tests(pkg, test_path = "tests/testthat", root_dir = tempdir())

Arguments

pkg

Name of the package to test; should be installed to a library in .libPaths().

test_path

Directory containing tests, where testthat::test_dir() will be run.

root_dir

The directory path to where the package is (i.e. where the repo has been cloned). file.path(root_dir, pkg, test_path) should lead to the directory that will be tested.


metrumresearchgroup/mrgvalprep documentation built on Dec. 10, 2022, 3:17 a.m.