runTestsInternal: Initialze test environment and run tests

View source: R/RtestingHelpers.R

runTestsInternalR Documentation

Initialze test environment and run tests

Description

Internal function for initialzing test environment and running tests stored in a folder

Usage

runTestsInternal(
  testsFolder = firstDef(options("testme")$testme$testsFolder, "./Rtests"),
  expectationsFolder = options("testme")$testme$expectationsFolder,
  useGit = TRUE,
  Ndash = 100,
  logLevel = 4
)

Arguments

testsFolder

Folder to be tests. Default folder is taken from ‘options(’testme')$testme$testsFolder'.

expectationsFolder

Folder where expectations are stored. Default folder is taken from ‘options(’testme')$testme$expectationsFolder'.

useGit

boolean to indicate whether vivified expectations should be committed using git

Ndash

integer to set length of visual separators

logLevel

integer to indicate verbosity of logging information

Value

returns 0 on success, value greater 0 if tests failed


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