Skip to content
Agentmart
Submit a tool

android-visual-regression-testing

Compose Preview Screenshot Testing(Google公式)を使用したAndroid Visual Regression Testingの専門知識。エミュレータ不要のピクセルパーフェクトなUI検証、CI/CD統合。Androidスナップショットテストの設計・実装、VRTカバレッジ改善、CI…

Skill by ohzono

IndexedMIT★ 3
Write a review

Chalk Labs

Need help deploying android-visual-regression-testing?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ohzono-android-visual-regression-testing

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Compose Preview Screenshot Testing(Google公式)を使用したAndroid Visual Regression Testingの専門知識。エミュレータ不要のピクセルパーフェクトなUI検証、CI/CD統合。Androidスナップショットテストの設計・実装、VRTカバレッジ改善、CI/CDへのVRT統合時に使用します。

Use cases: design, testing, devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/android-visual-regression-testing

Tools it pre-approves 6

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Read,
  • Glob,
  • Edit,
  • Write,
  • WebSearch,
  • Bash

What's inside

Skill name
android-visual-regression-testing
Description
Compose Preview Screenshot Testing(Google公式)を使用したAndroid Visual Regression Testingの専門知識。エミュレータ不要のピクセルパーフェクトなUI検証、CI/CD統合。Androidスナップショットテストの設計・実装、VRTカバレッジ改善、CI/CDへのVRT統合時に使用します。
License
MIT
Allowed tools
Read,, Glob,, Edit,, Write,, WebSearch,, Bash
Instructions
123 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves any shell command

Files (2)

  • SKILL.md
  • reference.md

SKILL.md (first lines)

# Android Visual Regression Testing Skill

## Overview
Comprehensive expertise in implementing Visual Regression Testing (VRT) for Android applications. This includes snapshot testing with Compose Preview Screenshot Testing (Google official), enabling fast UI verification without emulators.

## Why Visual Regression Testing?

### Benefits
- **No Emulator Required**: Compose Preview Screenshot Testing runs on JVM for fast feedback without emulators
- **Catch UI Regressions Early**: Detect unintended visual changes before release
- **Design System Validation**: Ensure components match design specifications
- **Refactoring Safety**: Confidently refactor UI code with visual verification
- **Multi-Configuration Testing**: Dark mode, locales, font scales in one test run

### When to Use
- Jetpack Compose component development
- Material Design 3 implementation
- Design system/component library projects
- UI refactoring initiatives
- Accessibility visual testing
- Multi-theme support verification

## Compose Preview Screenshot Testing

Official Google library for testing Compose Previews. Runs entirely on JVM without emulators.

```kotlin
// Installation: id("com.android.compose.screenshot") version "0.0.1-alpha15"
// バージョン追従ポリシー: 本ライブラリは alpha 段階で API が変わり得る。導入時は
// https://developer.android.com/studio/preview/compose-screenshot-testing-release-notes
// で最新安定 alpha を確認して置き換えること。
// 画像比較の validation-api は plugin が内部解決するため、通常は明示依存不要。
// build.gradle.kts
android {
    experimentalProperties["android.experimental.enableScreenshotTest"] = true
}
dependencies {
    screenshotTestImplementation("androidx.compose.ui:ui-tooling")
}

// テスト作成: src/screenshotTest/kotlin/ に配置
@Preview(name = "Light", showBackground = true)
@Preview(name = "Dark", showBackground = true, uiMode = UI_MODE_NIGHT_YES)
@Composable
fun ProductCardPreview() {
    AppTheme { ProductCard(product = Product.sample()) }
}

// フォントスケール
@Preview(name = "Large Font", fontScale = 1.5f, showBackground = true)
@Composable
fun ProductCardLargeFontPreview() {
    AppTheme { ProductCard(product = Product.sample()) }
}

// Gradle commands
// Record:  ./gradlew updateDebugScreenshotTest
// Verify:  ./gradlew validateDebugScreenshotTest
```

## Best Practices

### Test Naming Convention

Compose Preview Screenshot Testing は `@Preview` 付き Composable 関数を対象とする(`@Test` メソッドは検出されない)。命名は Preview 関数名で表現する:

```kotlin
// Format: ComponentName + State + Preview(@Preview 関数名ベース)
@Preview @Composable fun ProductCardDefaultPreview() { /* ... */ }
@Preview @Composable fun ProductCardOnSalePreview() { /* ... */ }
@Preview @Composable fun ProductCardDarkThemePreview() { /* ... */ }
@Preview @Composable fun ProductCardLargeFontScalePreview() { /* ... */ }
```

> `@Test fun productCard_default()` のような命名は Paparazzi / Roborazzi 等の手動キャプチャ API の流儀であり、本ライブラリでは使わない。

### Handling Dynamic Content
- Use fixed test data (fixed dates, placeholder images)
- Use `PreviewParameterProvider` for consistent test data
- Use `FakeImageLoader` for image loading tests

### Handling Flaky Tests
- Use `LocalInspectionMode provides true` to disable animations
- Include Android resources: `isIncludeAndroidResources = true`

### CI/CD Key Points
- Compose Preview Screenshot Testing runs on `ubuntu-latest` (no emulator needed)
- Upload failed snapshots as artifacts on failure

## Verification Checklist
- [ ] All UI components have snapshot coverage
- [ ] Dark/Light theme variants tested
- [ ] Font scale variations tested (1.0x, 1.5x, 2.0x)
- [ ] Multiple screen sizes covered (phone, tablet, foldable)
- [ ] RTL layouts tested for internationalization
- [ ] CI/CD pipeline integration complete
- [ ] Snapshot update process documented

## Evidence-First Visual Testing

**Core Belief**: "Visual regression testing provides objective evidence of UI consistency and enables confident UI refactoring"

### Standards Compliance
- Material Design 3 visual specifications
- Android accessibility guidelines (contrast ratios, touch targets)
- Design system documentation
- Platform-specific rendering requirements

## When to Use This Skill
- Setting up Android snapshot testing (Compose Preview Screenshot Testing)
- Creating visual regression tests for Compose components
- Testing Material Design 3 theme implementations
- Multi-device and accessibility visual testing
- CI/CD integration for visual verification
- Debugging flaky snapshot tests
- Design system component validation
- Localization visual verification

## 詳細リファレンス

From ohzono/native-app-fullcycle, MIT.

More from ohzono/native-app-fullcycle

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Jun 18, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ohzono

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get android-visual-regression-testing running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying android-visual-regression-testing?

CallGet help
Cite this page

android-visual-regression-testing skill. Agent Mart. https://agentmart.dev/skills/ohzono-android-visual-regression-testing (last updated 2026-10-24)