Learn R Programming

amregtest (version 1.0.3)

artRun: Runs the regression test

Description

Runs allelematch regression tests 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, 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. Character vector of length one.

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

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

See Also

artVersion and artList

Examples

Run this code
# See what version of packages 'allelematch' and 'amregtest'
# are currently installed:
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