run_test: Run tests a single time

Description Usage Arguments Details Value Examples

View source: R/run_tests.R

Description

Run tests a single time

Usage

1
2
3
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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 Dec. 30, 2021, 11:53 a.m.