testmeDir: Run all tests defined in a folder

View source: R/RtestingHelpers.R

testmeDirR Documentation

Run all tests defined in a folder

Description

Collect files from a folder using a pattern, extract testing functions and run tests.

Usage

testmeDir(
  dir = "Rtests",
  expectationsFolder = "Rtests/RtestsExpectations",
  filePattern = ".R$",
  useGit = T,
  logLevel = 4,
  print = T
)

Arguments

dir

path to older with R-scripts containing tests

expectationsFolder

path to folder containing expectations for tests

filePattern

pattern to identify file names containting tests. Passed to list.files.

useGit

boolean to indicate whether to commit changes in expectation using git.

logLevel

detail of logging information (>4: debugging information)

print

boolean to indicate whether a test report is to be printed

Value

test results as returned by testmeFile


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