gen_from_package: Generates tests for a package by running the code associated...

Description Usage Arguments

View source: R/testr.R

Description

Runs the examples, vignettes and possibly tests associated with the package and captures the usage of package's functions. Creates tests from the captured information, filters it according to the already existing tests and if any new tests are found, adds them to package's tests.

Usage

1
2
gen_from_package(package.dir = ".", include.tests = FALSE, timed = FALSE,
  filter = TRUE, build = TRUE, output, verbose = testr_options("verbose"))

Arguments

package.dir

Name/path to the package, uses devtools notation.

include.tests

If TRUE, captures also execution of package's tests.

timed

TRUE if the tests result depends on time, in which case the current date & time will be appended to the output_dir.

filter

TRUE if generated tests should be filteres so that only those adding to a coverage will be used

build

if to build package before. Default TRUE

output

If used, specifies where should the tests be unfiltered tests be generated (if not specified, they will use a temp directory and clean it afterwards)

verbose

Prints additional information.


reactorlabs/r-tests-old-version documentation built on July 10, 2018, 12:42 a.m.