本文へ移動
cccskills
無料GitHub で公開

android-testing

Android アプリ開発 (Kotlin) のテストリファレンス。JUnit4, Espresso, テストピラミッド。 テストダブル, Mockito, MockK, Truth, Robolectric, coroutines/Flow/ViewModel テスト。 AndroidJUnit4, ActivityScenario, FragmentScenario, UiAutomator, AndroidTestOrchestrator。 createComposeRule, Compose UI テスト同期。

インストール方法を見る

含まれるファイル(75)

  • SKILL.md6.9 KB
  • references/compose-testing/accessibility-testing.md2.2 KB
  • references/compose-testing/actions.md3.1 KB
  • references/compose-testing/assertions.md2.9 KB
  • references/compose-testing/common-patterns.md3.0 KB
  • references/compose-testing/compose-test-rule.md3.9 KB
  • references/compose-testing/compose-testing-v2.md5.4 KB
  • references/compose-testing/debug.md1.0 KB
  • references/compose-testing/device-configuration-override.md1.9 KB
  • references/compose-testing/espresso-interop.md2.6 KB
  • references/compose-testing/finders.md2.6 KB
  • references/compose-testing/preview-screenshot-testing.md2.2 KB
  • references/compose-testing/print-to-log.md1.3 KB
  • references/compose-testing/README.md3.0 KB
  • references/compose-testing/screenshot-testing.md1.4 KB
  • references/compose-testing/semantics-matcher.md2.4 KB
  • references/compose-testing/semantics-node-interaction.md2.6 KB
  • references/compose-testing/state-restoration-tester.md2.2 KB
  • references/compose-testing/synchronization.md3.6 KB
  • references/compose-testing/test-tag-usage.md1.8 KB
  • references/espresso/accessibility-checks.md1.6 KB
  • references/espresso/best-practices.md1.5 KB
  • references/espresso/contrib-actions.md2.4 KB
  • references/espresso/custom-matchers-actions.md2.0 KB
  • references/espresso/espresso-device.md4.2 KB
  • references/espresso/global-actions.md1.8 KB
  • references/espresso/idling-resource.md2.4 KB
  • references/espresso/intents.md2.2 KB
  • references/espresso/multiprocess.md2.3 KB
  • references/espresso/ondata.md1.5 KB
  • references/espresso/onview.md1.4 KB
  • references/espresso/README.md3.1 KB
  • references/espresso/recipes.md2.0 KB
  • references/espresso/recyclerviewactions.md1.7 KB
  • references/espresso/viewactions.md2.1 KB
  • references/espresso/viewassertions.md1.3 KB
  • references/espresso/viewinteraction.md1.5 KB
  • references/espresso/viewmatchers.md2.7 KB
  • references/espresso/web.md2.1 KB
  • references/fundamentals-local/coroutines-testing.md1.9 KB
  • references/fundamentals-local/flow-testing.md1.6 KB
  • references/fundamentals-local/instanttaskexecutorrule.md1.2 KB
  • references/fundamentals-local/junit4-basics.md1.5 KB
  • references/fundamentals-local/mockito.md1.7 KB
  • references/fundamentals-local/mockk.md1.3 KB
  • references/fundamentals-local/README.md1.9 KB
  • references/fundamentals-local/robolectric.md1.9 KB
  • references/fundamentals-local/test-dependencies.md1.7 KB
  • references/fundamentals-local/test-doubles.md1.8 KB
  • references/fundamentals-local/test-pyramid.md2.0 KB
  • references/fundamentals-local/testable-design.md1.4 KB
  • references/fundamentals-local/truth.md1.3 KB
  • references/fundamentals-local/viewmodel-testing.md1.7 KB
  • references/instrumented/activityscenario.md2.0 KB
  • references/instrumented/activityscenariorule.md1.1 KB
  • references/instrumented/androidjunit4-test-runner.md1.6 KB
  • references/instrumented/androidtestorchestrator.md1.1 KB
  • references/instrumented/applicationprovider.md695 B
  • references/instrumented/content-provider-testing.md2.8 KB
  • references/instrumented/fragmentscenario.md2.3 KB
  • references/instrumented/gradle-managed-devices.md1.8 KB
  • references/instrumented/grantpermissionrule.md1.2 KB
  • references/instrumented/instrumentationregistry.md1022 B
  • references/instrumented/README.md3.0 KB
  • references/instrumented/screenshot-testing.md1.4 KB
  • references/instrumented/servicetestrule.md1.3 KB
  • references/instrumented/set-up-project.md1.7 KB
  • references/instrumented/test-filter-annotations.md1.6 KB
  • references/instrumented/test-stability.md3.1 KB
  • references/instrumented/uiautomator.md1.9 KB
  • references/performance-testing/compilation-mode.md3.0 KB
  • references/performance-testing/macrobenchmark-metrics.md2.7 KB
  • references/performance-testing/macrobenchmark-rule.md3.5 KB
  • references/performance-testing/microbenchmark-rule.md2.9 KB
  • references/performance-testing/README.md821 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Android Testing リファレンス

Android アプリ (Kotlin) のテストに関する公式ドキュメントを蒸留したスキル。 ユーザーのタスクに応じて適切な README.md を読み、そこから個別ファイルへ辿ること。

ディレクトリ構成

skills/android-testing/
  SKILL.md
  references/
    fundamentals-local/
      README.md
      test-pyramid.md
      test-dependencies.md
      junit4-basics.md
      test-doubles.md
      mockito.md
      mockk.md
      truth.md
      robolectric.md
      coroutines-testing.md
      flow-testing.md
      viewmodel-testing.md
      instanttaskexecutorrule.md
      testable-design.md
    instrumented/
      README.md
      androidjunit4-test-runner.md
      set-up-project.md
      instrumentationregistry.md
      applicationprovider.md
      activityscenario.md
      activityscenariorule.md
      fragmentscenario.md
      servicetestrule.md
      uiautomator.md
      test-filter-annotations.md
      grantpermissionrule.md
      androidtestorchestrator.md
      screenshot-testing.md
      gradle-managed-devices.md
      test-stability.md
      content-provider-testing.md
    espresso/
      README.md
      onview.md
      viewinteraction.md
      viewmatchers.md
      viewactions.md
      viewassertions.md
      ondata.md
      recyclerviewactions.md
      global-actions.md
      idling-resource.md
      intents.md
      web.md
      accessibility-checks.md
      custom-matchers-actions.md
      best-practices.md
      recipes.md
      espresso-device.md
      contrib-actions.md
      multiprocess.md
    compose-testing/
      README.md
      compose-test-rule.md
      finders.md
      semantics-matcher.md
      assertions.md
      actions.md
      semantics-node-interaction.md
      print-to-log.md
      synchronization.md
      test-tag-usage.md
      espresso-interop.md
      screenshot-testing.md
      preview-screenshot-testing.md
      accessibility-testing.md
      state-restoration-tester.md
      device-configuration-override.md
      compose-testing-v2.md
      common-patterns.md
      debug.md
    performance-testing/
      README.md
      compilation-mode.md
      macrobenchmark-metrics.md
      macrobenchmark-rule.md
      microbenchmark-rule.md

探索手順

タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

タスク → カテゴリ マッピング

タスクカテゴリ参照 README
テストピラミッド・テスト戦略・test/ と androidTest/ の使い分けを知りたいfundamentals-localreferences/fundamentals-local/README.md
JUnit4 の @Test / @Before / テストダブル・Mockito・MockK でユニットテストを書きたいfundamentals-localreferences/fundamentals-local/README.md
Truth でアサーションを書きたい、Robolectric で JVM 上に Android テストを実行したいfundamentals-localreferences/fundamentals-local/README.md
coroutines / Flow / ViewModel のテストを書きたい(runTest, TestDispatcher)fundamentals-localreferences/fundamentals-local/README.md
AndroidJUnit4 / InstrumentationRegistry / ApplicationProvider で計装テストを構築したいinstrumentedreferences/instrumented/README.md
ActivityScenario / FragmentScenario でライフサイクルを制御したいinstrumentedreferences/instrumented/README.md
UiAutomator でアプリ横断 UI 操作をしたい、GrantPermissionRule で権限を付与したいinstrumentedreferences/instrumented/README.md
AndroidTestOrchestrator / Gradle Managed Devices でテスト実行を分離・スケールしたいinstrumentedreferences/instrumented/README.md
Espresso.onView / ViewMatchers / ViewActions / ViewAssertions で View 系 UI をテストしたいespressoreferences/espresso/README.md
RecyclerViewActions / IdlingResource で非同期・リスト UI をテストしたいespressoreferences/espresso/README.md
Espresso-Intents / Espresso-Web で Intent や WebView をテストしたいespressoreferences/espresso/README.md
createComposeRule / finder / SemanticsMatcher で Compose UI をテストしたいcompose-testingreferences/compose-testing/README.md
Compose のアサーション・アクション・テスト同期(waitForIdle 等)を制御したいcompose-testingreferences/compose-testing/README.md
Compose と Espresso/UiAutomator を相互運用したい、スクリーンショットテストを書きたいcompose-testingreferences/compose-testing/README.md
Compose テストの典型パターン(composable の分離・状態到達方法)を知りたい、semantics tree をデバッグしたいcompose-testingreferences/compose-testing/README.md
MacrobenchmarkRule で起動・スクロール・アニメーションの性能を計測したいperformance-testingreferences/performance-testing/README.md
BenchmarkRule でホットパスをマイクロベンチマークしたいperformance-testingreferences/performance-testing/README.md
CompilationMode / Metric で計測条件と取得指標を制御したいperformance-testingreferences/performance-testing/README.md
Hilt のテストをしたい-android-architecture スキルの担当
Room のテストをしたい-android-data スキルの担当
WorkManager のテストをしたい-android-background-work スキルの担当

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

amd-rocm

無料日本語概要

AMD ROCm / HIP GPU コンピューティングリファレンス。 hipMalloc, hipLaunchKernelGGL, HIP Graph, HIPRTC, hipify, rocBLAS, MIOpen, RCCL, rocprofv3, amd-smi, rocminfo, CDNA1-4 / RDNA1-4, MI300 / MI350, gfx942, Matrix Core, wave32/64。

Fandhe-AI/agent-reference-skills42026年10月9日 更新

android-architecture

無料日本語概要

Android アプリ開発 (Kotlin) の推奨アーキテクチャリファレンス。 Jetpack, androidx, UI layer, Domain layer, Data layer, state holder, UDF, SSOT, オフラインファースト, モジュール化, ViewModel, viewModelScope, SavedStateHandle, Lifecycle, repeatOnLifecycle, collectAsStateWithLifecycle, LiveData, Hilt による DI, Paging 3 によるページング処理。

Fandhe-AI/agent-reference-skills42026年10月9日 更新

android-background-work

無料日本語概要

Android アプリ開発 (Kotlin) のバックグラウンド・非同期処理リファレンス。 Jetpack androidx WorkManager: Worker, CoroutineWorker, WorkRequest, Constraints, WorkInfo, WorkContinuation, expedited work, テスト。 Service: フォアグラウンドサービス, バウンドサービス, AIDL, Messenger。 AlarmManager, PendingIntent, BroadcastReceiver, JobScheduler, Doze。 Kotlin コルーチン, Flow, StateFlow, SharedFlow, Channel。

Fandhe-AI/agent-reference-skills42026年10月9日 更新

android-build-gradle

無料日本語概要

Android アプリ開発 (Kotlin) の Gradle ビルドシステムリファレンス。 Android Gradle Plugin (AGP), Kotlin DSL (build.gradle.kts), version catalog, KSP, R8/ProGuard, App Bundle, baseline profile。

Fandhe-AI/agent-reference-skills42026年10月9日 更新

android-compose-components

無料日本語概要

Android Jetpack Compose (Kotlin) の androidx Material3 コンポーネントリファレンス。 Button, IconButton, FloatingActionButton, Checkbox, Switch, Slider, TextField, SearchBar, DropdownMenu, Chip, DatePicker, TimePicker, Card, Scaffold, Dialog, BottomSheet, TopAppBar, NavigationBar, NavigationRail, Tab, Snackbar, ProgressIndicator, Badge, Icon, MaterialTheme, ColorScheme, Typography, Shapes。

Fandhe-AI/agent-reference-skills42026年10月9日 更新

Android Jetpack Compose (Kotlin) のアニメーション・描画リファレンス。 androidx.compose.animation / graphics API。 AnimatedVisibility, AnimatedContent, animate*AsState, Animatable, AnimationSpec, Canvas, DrawScope, Brush, Path, Color, Image。

Fandhe-AI/agent-reference-skills42026年10月9日 更新

Fandhe-AI のスキルをすべて見る

このスキルの問題を報告する