testing-pyramid

Generate unit, Hilt integration, and Espresso tests for Android features.

1|1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/ChooJeongHo/MovieFinder --skill testing-pyramid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-pyramid
Source: https://github.com/ChooJeongHo/MovieFinder/tree/main/.claude/skills/testing-pyramid
Command: npx skills add https://github.com/ChooJeongHo/MovieFinder --skill testing-pyramid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides structured guidance and templates to implement unit, Hilt integration, and Espresso tests following the MovieFinder project's patterns, reducing boilerplate and increasing reliability.

Core Features & Use Cases

  • Layered testing strategy including Unit tests for ViewModel/UseCase, Hilt integration tests with in-memory DB, and Espresso UI tests for navigation smoke checks.
  • Reusable templates for setup, mocks, verifications, and test naming conventions aligned with MovieFinder structures.
  • Use Case: Create or fix tests to validate interactions, data flow, and UI behavior across layers.

Quick Start

Choose a feature and implement unit, Hilt integration, and Espresso tests following the project's test patterns.

Frequently Asked Questions about testing-pyramid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Android tests using the testing pyramid?

To structure Android tests using the testing pyramid, you implement unit tests for ViewModels and UseCases, Hilt integration tests with an in-memory database, and Espresso tests for UI navigation smoke checks.

How do I write Hilt integration tests with an in-memory database in Android?

Writing Hilt integration tests with an in-memory database involves using Hilt testing rules to inject dependencies, replacing the actual database with an in-memory version, and verifying data flow through repository layers.

How do I mock coroutines and ViewModels for Android unit tests using MockK?

Mocking coroutines and ViewModels for Android unit tests using MockK involves applying reusable templates for setup, defining mock behaviors for suspend functions, and verifying interactions according to established project patterns.

Do I need MockK and JUnit to run Espresso tests for Android navigation?

You need MockK and JUnit alongside Android testing rules to run Espresso tests for navigation, as they provide the required mocking and assertion framework support to verify UI behavior and navigation smoke checks consistently.

What is the best way to reduce boilerplate when creating Espresso UI tests for Android?

The best way to reduce boilerplate when creating Espresso UI tests for Android is to apply reusable templates for setup, mocks, and verifications, ensuring consistent test naming conventions and structure across the app stack.

Why does my Android testing strategy fail to validate data flow across repository layers?

An Android testing strategy fails to validate data flow across repository layers when it lacks Hilt integration tests with an in-memory database, missing the necessary environment to verify interactions and data movement between layers.