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.
1 2 | filter(test_root, output_dir, ..., package_path = "", remove_tests = FALSE,
compact = FALSE, verbose = testr_options("verbose"))
|
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: |
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: |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.