Screenshots as previews: no endless animation, no fetches; tests named as they start
CI / check (push) Canceled after 0s

The first run of the new shots did not finish within ten minutes. In
inspection mode the writing dots stand still and pictures are not fetched;
Gradle now names each test as it starts and gives up after 20 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-09 13:07:17 +00:00
1 parent 9f4ae89030
commit f5ee8d75b1
4 files changed
+28 -8

No files matched your search

@@ -10,6 +10,7 @@ import com.github.takahirom.roborazzi.ExperimentalRoborazziApi
import com.github.takahirom.roborazzi.RoborazziComposeOptions
import com.github.takahirom.roborazzi.captureRoboImage
import com.github.takahirom.roborazzi.fontScale
import com.github.takahirom.roborazzi.inspectionMode
import com.github.takahirom.roborazzi.size
import eu.llembas.android.ui.theme.LembasTheme
@@ -32,6 +33,8 @@ fun shoot(name: String, phone: Phone = Phone.Large, fontScale: Float = 1f, conte
filePath = "build/screenshots/${phone.tag}-$name-$theme$font.png",
roborazziComposeOptions = RoborazziComposeOptions {
size(phone.widthDp, phone.heightDp)
// As a preview: no endless animation, no pictures fetched from an instance.
inspectionMode(true)
if (fontScale != 1f) fontScale(fontScale)
},
) {