screenshot-tests
Skill1.5k starsChanged 2 months agoMITView on GitHub
Use when writing or running Paparazzi screenshot tests in stripe-android — covers PaparazziRule setup, recording/verifying commands, and test structure
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about stripe/stripe-android
- stripe/stripe-ios“Port Stripe-iOS to Flutter”GitHub · Jan 31, 2019 · 64 reactions
- Adyen/adyen-web“Google Pay - Issue with Maestro - regression from #3539”GitHub · Nov 5, 2025 · 6 reactions
- facebook/facebook-android-sdk“Robolectric is incorrectly specified as non-test dependencies”GitHub · Oct 6, 2022 · 5 reactions
- thebergamo/react-native-fbsdk-next“Upgrade bouncycastle to org.bouncycastle:bcprov-jdk15to18:1.70”GitHub · Oct 5, 2022 · 3 reactions
- PhilipsHue/flutter_reactive_ble“Include our own proguard rules to simplify usages of our library ”GitHub · Nov 18, 2020 · 3 reactions
The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 6
Talked about on GitHub (6 times).
On GitHub · 6
- Jan 31, 2019Port Stripe-iOS to Flutter — stripe/stripe-ios64 reactions · 8 comments
- Nov 5, 2025Google Pay - Issue with Maestro - regression from #3539 — Adyen/adyen-web6 reactions · 8 comments
- Oct 6, 2022Robolectric is incorrectly specified as non-test dependencies — facebook/facebook-android-sdk5 reactions · 2 comments
- Oct 5, 2022Upgrade bouncycastle to org.bouncycastle:bcprov-jdk15to18:1.70 — thebergamo/react-native-fbsdk-next3 reactions · 6 comments
- Nov 18, 2020Include our own proguard rules to simplify usages of our library — PhilipsHue/flutter_reactive_ble3 reactions
1 more on GitHub
- Feb 10, 2023Opt certain crash reports not to affect crashlytics dashboard — firebase/firebase-android-sdk2 reactions · 1 comment
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- compose-testsSkill
- delegate-low-reasoning-workSkill
- fixing-flakesSkill
- network-testsSkill
- parameterized-testsSkill
- write-unit-testsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Verify screenshots match recorded baselines (used on CI):
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Screenshot Tests (Paparazzi)
We use Paparazzi for screenshot testing via the screenshot-testing module.
Recording Screenshots
Record (update) screenshots after UI changes:
./gradlew :<module>:recordPaparazziDebugTo record a specific test class only:
./gradlew :<module>:recordPaparazziDebug --tests "com.stripe.android.package.MyScreenshotTest"Wildcard form also works:
./gradlew :<module>:recordPaparazziDebug --tests "*.MyScreenshotTest"New or updated screenshots are written to <module>/src/test/snapshots/images/ and added to the Git staging area.
Verifying Screenshots
Verify screenshots match recorded baselines (used on CI):
./gradlew :<module>:verifyPaparazziDebugFailure diffs are written to <module>/out/failures (git-ignored).
Test Class Structure
internal class MyScreenshotTest {
@get:Rule
val paparazziRule = PaparazziRule(
SystemAppearance.entries, // Light/Dark
PaymentSheetAppearance.entries, // Default/Custom/Crazy appearances
FontSize.entries, // Default/Large font
boxModifier = Modifier.padding(horizontal = 16.dp),
)
@Test
fun testDefault() {
paparazziRule.snapshot {
MyComposable(/* ... */)
}
}
}PaparazziRulegenerates all permutations of the config options automatically.- Each test produces one snapshot per permutation (e.g., 12 images for 2 themes x 3 appearances x 2 font sizes).
- Snapshots are named
<package>_<class>_<method>[<permutation>].png.
Available Config Options
| Option | Values | Import |
SystemAppearance | LightTheme, DarkTheme | com.stripe.android.screenshottesting |
FontSize | DefaultFont, LargeFont | com.stripe.android.screenshottesting |
PaymentSheetAppearance | DefaultAppearance, CustomAppearance, CrazyAppearance | com.stripe.android.utils.screenshots |
Common Mistakes
- Using
-Precordor other flags — Paparazzi uses a separaterecordPaparazziDebugtask, not a project property. - Running
testDebugUnitTestto record — this only verifies against existing snapshots; userecordPaparazziDebugto update them. - Forgetting to commit updated snapshots — recorded images go into
src/test/snapshots/images/and must be committed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

