bisect_runtest: Run a test function for git bisect testing.

Description Usage Arguments Details See Also

View source: R/bisect.r

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

1
2
  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


bisectr documentation built on May 2, 2019, 6:50 a.m.