diff --git a/uitestutils/src/main/java/com/gravatar/uitestutils/RoborazziTest.kt b/uitestutils/src/main/java/com/gravatar/uitestutils/RoborazziTest.kt index 16aa1ae9a..b95d1abb0 100644 --- a/uitestutils/src/main/java/com/gravatar/uitestutils/RoborazziTest.kt +++ b/uitestutils/src/main/java/com/gravatar/uitestutils/RoborazziTest.kt @@ -3,7 +3,9 @@ package com.gravatar.uitestutils import androidx.compose.runtime.Composable import androidx.compose.ui.test.junit4.createComposeRule import androidx.test.ext.junit.runners.AndroidJUnit4 +import com.dropbox.differ.SimpleImageComparator import com.github.takahirom.roborazzi.RobolectricDeviceQualifiers +import com.github.takahirom.roborazzi.RoborazziOptions import com.github.takahirom.roborazzi.RoborazziRule import com.github.takahirom.roborazzi.captureRoboImage import org.junit.Rule @@ -28,6 +30,11 @@ abstract class RoborazziTest { val roborazziRule = RoborazziRule( options = RoborazziRule.Options( outputDirectoryPath = SCREENSHOTS_PATH, + roborazziOptions = RoborazziOptions( + compareOptions = RoborazziOptions.CompareOptions( + imageComparator = SimpleImageComparator(maxDistance = 0.007F, hShift = 1) + ) + ) ), )