bisect_runtest {bisectr}R Documentation

Run a test function for git bisect testing.

Description

If the function fun returns "good" or TRUE, quit and return a code to mark this commit as good. If the function returns "bad" or FALSE, quit and return a code to mark this commit as bad. If the function returns "skip" or NA, quit and return a code to mark this commit as skip. If the function returns "ignore" or NULL, do nothing.

Usage

  bisect_runtest(fun, on_error = "skip",
    msg = "Running test...")

Arguments

fun

The test function

on_error

What to do if running fun throws an error (default is to mark this commit as skip)

msg

A message to print to the console when running the test

Details

It is also important to set on_error. This tells it what to do when the test function throws an error. The default behavior is to mark this commit as skip. However, in some cases, it makes sense to mark this commit as bad if an error is thrown.

See Also

bisect_load_all

bisect_install

bisect_source

bisect_return_interactive


[Package bisectr version 0.1.0 Index]