Description Usage Arguments Details See Also
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.
1 | bisect_runtest(fun, on_error = "skip", msg = "Running test...")
|
fun |
The test function |
on_error |
What to do if running |
msg |
A message to print to the console when running the test |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.