prune: Filter the generated tests so that only tests increasing code...

Description Usage Arguments

Description

This function attempts to filter test cases based on code coverage collected by covr package. Filtering is done in iterational way by measuring code coverage of every test separately and skipping the ones that don't increase the coverage.

Usage

1
2
prune(test_root, output_dir, ..., package_path = "", remove_tests = FALSE,
  compact = FALSE, verbose = testr_options("verbose"))

Arguments

test_root

root directory of tests to be filtered

output_dir

resulting directory where tests will be store. If nothing is supplied, tests that don't increase coverage will be removed from test_root

...

functions that tests should be filtered aganist

package_path

package root of the package that coverage should be measured

remove_tests

if the tests that don't increase coverage should be removed. Default: FALSE. This option will be set to TRUE if output_dir is not supplied

compact

If TRUE, the filtered tests will be compacted into files one per function, rather than the default one per test.

verbose

whether the additional information should be displayed. Default: TRUE


reactorlabs/r-tests-old-version documentation built on May 17, 2019, 1:58 p.m.