Bitwarden Android Testing Patterns
Provides tactical guidance and standardized patterns for testing Android ViewModels, Compose UIs, and repositories within the Bitwarden ecosystem.
This skill equips developers with the specific testing architectures and utilities required for the Bitwarden Android codebase. It automates the application of specialized base classes like BaseViewModelTest and BitwardenComposeTest, ensuring consistent coroutine handling, flow testing via Turbine, and deterministic execution with FakeDispatcherManager. By codifying best practices for MockK, JUnit 5, and MockWebServer, it helps developers avoid common pitfalls such as incorrect exception assertions or static mock cleanup, resulting in a robust and maintainable mobile test suite.
Características Principales
01Built-in guidance for common Bitwarden-specific testing pitfalls and anti-patterns
02Deterministic coroutine testing using FakeDispatcherManager and fixed Clocks
03Advanced flow testing patterns for StateFlow and EventFlow using Turbine
04Access to 35+ specialized test data builders for Ciphers, Sync, and Profile objects
05Standardized base classes for ViewModels, Compose screens, and network services
068,974 GitHub stars
Casos de Uso
01Creating UI tests for Compose screens with pre-configured managers and themes
02Writing unit tests for new Android ViewModels using BaseViewModelTest and stateEventFlow
03Testing network repositories and services using MockWebServer and Result extensions