Cross-Library usage
fun defaultCrossLibraryScreenshotTestRule(
config: ScreenshotConfigForComposable,
): ScreenshotTestRule =
CrossLibraryScreenshotTestRule(config)
// Optional: Define special configurations for each library you're using
.configure(
ShotConfig(bitmapCaptureMethod = PixelCopy())
).configure(
DropshotsConfig(
bitmapCaptureMethod = PixelCopy(),
resultValidator = ThresholdValidator(0.15f)
)
).configure(
AndroidTestifyConfig(bitmapCaptureMethod = PixelCopy())
).configure(
PaparazziConfig(deviceConfig = DeviceConfig.NEXUS_4)
).configure(
RoborazziConfig(
filePath = File(userTestFilePath()).path,
deviceScreen = DeviceScreen.Phone.NEXUS_4,
)
)Last updated