Tagged articles
4 articles
Page 1 of 1
Airbnb Technology Team
Airbnb Technology Team
Dec 22, 2021 · Mobile Development

Automated Unit Testing Framework for Android ViewModel (Part 4)

Part 4 of Airbnb’s Android testing series presents a dedicated framework that lets developers write concise, single‑function unit tests for ViewModel classes by specifying initial state, parameters, and expected state or dependency calls through a Kotlin DSL, integrating with JUnit, Robolectric, Mockito, and offering scaffolding and IntelliJ plugins for streamlined, systematic ViewModel logic verification.

AndroidDSLKotlin
0 likes · 12 min read
Automated Unit Testing Framework for Android ViewModel (Part 4)
Huajiao Technology
Huajiao Technology
Feb 4, 2020 · Mobile Development

How to Build Reliable Android Automated Tests: From Unit to UI

This article explains why Android testing is crucial, outlines common testability problems, and provides step‑by‑step solutions using MVP architecture, interface‑based design, JUnit, Mockito, Robolectric, Espresso, and CI integration to create maintainable unit and UI tests.

AndroidAutomated TestingCI
0 likes · 12 min read
How to Build Reliable Android Automated Tests: From Unit to UI
Tencent TDS Service
Tencent TDS Service
Sep 22, 2016 · Mobile Development

Master Android Unit Testing: Why It Matters and How to Do It

This article explains the importance of unit testing in Android development, outlines why developers should invest time in it, and provides a step‑by‑step guide on writing effective Android unit tests using JUnit, Mockito, Dagger2, and Robolectric, along with practical tips, CI integration, and common pitfalls.

AndroidCIDagger2
0 likes · 23 min read
Master Android Unit Testing: Why It Matters and How to Do It
21CTO
21CTO
Apr 27, 2016 · Mobile Development

Mastering Android Unit Testing: Practical Tips, Tools, and Real-World Cases

This article shares practical experiences and best practices for Android unit testing, covering why testing matters, simple test structures, mocking with Mockito, dependency injection via Dagger2, using Robolectric, CI integration, common pitfalls, and a detailed checkout flow example.

AndroidCIDagger2
0 likes · 25 min read
Mastering Android Unit Testing: Practical Tips, Tools, and Real-World Cases