run_test: Run tests a single time

View source: R/run_tests.R

run_testR Documentation

Run tests a single time

Description

Run tests a single time

Usage

run_test(map)

run_tests(map, n = 1)

Arguments

map

a function map as returned from make_pkg_map()

n

(integer) number of times to run tests

Details

uses testthat::SilentReporter as the reporter in testthat::test_package()

Value

an object of class testthat_results

Examples

## Not run: 
path <- '/Users/sckott/github/ropensci/rredlist'
pkgmap <- make_pkg_map(path)

# single test
res <- run_test(pkgmap)
class(res)
res[[1]]

# many tests
out <- run_tests(pkgmap, times = 2)
length(out)
out[[1]]
out[[2]]

## End(Not run)

ropensci/mutant documentation built on Nov. 13, 2024, 8:31 a.m.