artRun {amregtest} | R Documentation |
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)
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.
Value
A list (invisibly) containing data about the test results as returned by testthat::test_package
See Also
artVersion and artList
Examples
# See what version of packages 'allelematch' and 'amregtest'
# are currently installed:
artVersion()
# List the available tests:
artList()
# Run all the tests:
# artRun() # Takes several minutes
# Run the first of the available tests:
artRun(filter="allelematch_1-amDataset$")