runPackageTests: Run tests intalled in R-package

View source: R/RtestingHelpers.R

runPackageTestsR Documentation

Run tests intalled in R-package

Description

This is a convenience function to call runTests() on the test folder of an R-package. The tests are assumed to have been installed with installPackageTests before. The package must be loaded via library before calling this function.

Usage

runPackageTests(packageName, packageDir, isolateSession = TRUE, useGit = FALSE)

Arguments

packageName

name of the R-package to be tested. Uses system.file to find package files.

packageDir

alternatively to packageName, the package folder can be specified directly. Useful, for example, when testing a local developement tree.

isolateSession

boolean to indicate whether tests should be run in seperate R session

useGit

boolean to indicate whether git commit should be ran on the testFolder after running tests

Value

value of runTests


sboehringer/testme documentation built on Jan. 17, 2024, 4:58 p.m.