Learn R Programming

amregtest (version 1.0.5)

artRun: Runs the regression test

Description

Runs regression tests on package allelematch to make sure it is backwards compatible.

The full set of tests will take a couple of minutes.

Call artList to see the available tests with without running them.

Usage

artRun(filter = "", verbose = TRUE)

Value

A list (invisibly) containing data about the test results as returned by testthat::test_package

Arguments

filter

If specified, only tests with names matching this perl regular expression will be executed. Character vector of length 1. See also artList

verbose

logical. If TRUE (the default), prints version of tested allelematch to stdout

Details

If any of the test executed with artRun should fail, then we want to be able to run that specific test under the debugger.

Set a breakpoint in allelematch.R and call artRun(filter="<the test that reproduces the problem>")

Note that it is the last loaded version of allelematch that will be executed, not the last edited. In RStudio, CTRL+SHIFT+B will build, install and load.

See Also

artVersion and artList

Examples

Run this code
# See what version of packages 'allelematch' and 'amregtest'
# are currently loaded:
artVersion()

# List the available tests:
artList()
# \donttest{
# Run all the tests:
# artRun()  # Takes several minutes

# Run the first of the available tests:
artRun(filter="allelematch_1-amDataset$")
# }

Run the code above in your browser using DataLab