testing-setup

Analyze and configure Android and Compose Multiplatform testing infrastructure.

Updated May 5, 2023
One-click install
npx skills add https://github.com/uyelikanil/AwesomeSunsetWallpapers --skill testing-setup-uyelikanil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-setup
Source: https://github.com/uyelikanil/AwesomeSunsetWallpapers/tree/main/.agents/skills/testing-setup
Command: npx skills add https://github.com/uyelikanil/AwesomeSunsetWallpapers --skill testing-setup-uyelikanil

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of setting up a robust, multi-layered testing infrastructure for Android and Compose Multiplatform applications, ensuring consistent quality and coverage.

Core Features & Use Cases

  • Testing Strategy Analysis: Evaluates existing dependencies and frameworks to recommend the optimal testing stack.
  • Infrastructure Setup: Automates the configuration of unit, UI, screenshot, and end-to-end testing environments.
  • Use Case: A developer needs to implement a comprehensive testing suite for a new feature; this Skill guides them through installing the necessary frameworks, creating fakes for dependency injection, and setting up screenshot tests to ensure UI consistency across different device configurations.

Quick Start

Use the testing-setup skill to analyze the current project structure and generate a comprehensive testing strategy report.

Frequently Asked Questions about testing-setup

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

FAQPage Schema
How do I set up a comprehensive Android testing infrastructure for Compose Multiplatform?

Android testing infrastructure setup requires configuring unit, UI, screenshot, and end-to-end test frameworks. You can automate this by integrating tools like Robolectric for local tests and Dropshots for screenshot tests to ensure consistent UI quality.

What is the best way to configure dependency injection for Android UI tests?

Configuring dependency injection for Android UI tests requires creating fakes and integrating frameworks like Hilt or Koin. This isolates components and simulates real dependency behavior during test execution.

Does Robolectric work with Compose Multiplatform screenshot tests?

Robolectric works with Compose Multiplatform tests by providing a local execution environment. Pair it with Dropshots to capture and validate screenshot tests, ensuring UI consistency across different device configurations without requiring an emulator.

How do I automate screenshot tests for different device configurations in Android?

Automating Android screenshot tests requires integrating the Dropshots framework into your testing suite. This captures UI renders and automatically compares them against reference images to verify visual consistency across various device configurations.

When should I use Hilt versus Koin for my Android testing strategy?

Choosing between Hilt and Koin for Android testing depends on your existing project dependencies. Analyze your current dependency injection setup to determine which framework allows for easier creation of fakes and test doubles.