expect_equivalent_images {tinysnapshot} | R Documentation |
Test if two image files are equivalent
Description
Test if two image files are equivalent
Usage
expect_equivalent_images(
current,
target,
tol = getOption("tinysnapshot_tol", default = 0),
metric = getOption("tinysnapshot_metric", default = "AE"),
fuzz = getOption("tinysnapshot_fuzz", default = 0),
diffpath = NULL
)
Arguments
current |
path to an image file |
target |
path to an image file |
tol |
distance estimates larger than this threshold will trigger a test failure. Scale depends on the |
metric |
string with a metric from |
fuzz |
relative color distance between 0 and 100 to be considered similar. |
diffpath |
path where to save an image which shows the differences between |
Value
A tinytest
object. A tinytest
object is a logical
with attributes holding information about the test that was run
[Package tinysnapshot version 0.0.5 Index]