testing-android-code

Official

Master Bitwarden Android test patterns.

Authorbitwarden
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Bitwarden Android test workflows can be complex and brittle. This skill consolidates proven testing patterns, base test classes, and utilities to streamline writing reliable unit and UI tests for Android code in Bitwarden.

Core Features & Use Cases

  • Base classes and patterns for ViewModel, Compose UI, and service tests (BaseViewModelTest, BitwardenComposeTest, BaseServiceTest)
  • Turbine-based testing guidance for StateFlow vs EventFlow and test data builders
  • Extensive test data builders (createMockCipher, createMockSyncResponse, etc.) and fake implementations
  • Illustrated examples and reference docs for common scenarios (ViewModel tests, Compose screen tests, repository tests)

Quick Start

Use this skill to get started with Android test patterns; for example, ask: "How do I test a ViewModel with a StateFlow and EventFlow using BaseViewModelTest?"

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: testing-android-code
Download link: https://github.com/bitwarden/android/archive/main.zip#testing-android-code

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.