[Paper Review] How do Developers Test Android Applications?
This study investigates real-world testing practices among 102 open-source Android developers via a survey to guide the design of more effective automated testing tools. It reveals that developers prefer high-level, use-case-based test cases, distrust code coverage as a quality metric, and favor manual testing due to issues with reproducibility and debuggability in automated tools—highlighting a critical gap between research tools and developer needs.
Enabling fully automated testing of mobile applications has recently become an important topic of study for both researchers and practitioners. A plethora of tools and approaches have been proposed to aid mobile developers both by augmenting manual testing practices and by automating various parts of the testing process. However, current approaches for automated testing fall short in convincing developers about their benefits, leading to a majority of mobile testing being performed manually. With the goal of helping researchers and practitioners - who design approaches supporting mobile testing - to understand developer's needs, we analyzed survey responses from 102 open source contributors to Android projects about their practices when performing testing. The survey focused on questions regarding practices and preferences of developers/testers in-the-wild for (i) designing and generating test cases, (ii) automated testing practices, and (iii) perceptions of quality metrics such as code coverage for determining test quality. Analyzing the information gleaned from this survey, we compile a body of knowledge to help guide researchers and professionals toward tailoring new automated testing approaches to the need of a diverse set of open source developers.
Motivation & Objective
- To understand the real-world testing practices and preferences of open-source Android developers for guiding future automated testing tool development.
- To identify why existing automated testing tools have low adoption despite extensive research efforts.
- To investigate developer perceptions of test quality metrics, particularly code coverage, and their preferred alternatives.
- To uncover key requirements for automated testing tools that would increase developer adoption and integration into agile workflows.
- To provide actionable insights for researchers and practitioners to align automated testing approaches with actual developer needs and workflows.
Proposed method
- Conducted a survey with 102 active contributors to open-source Android projects hosted on GitHub.
- Focused on three core areas: test case design and generation, automated testing practices, and perceptions of test quality metrics.
- Collected data on preferences for test case representation, tool usage patterns, and evaluation criteria such as code coverage and fault detection.
- Analyzed responses to identify trends in developer workflows, tool preferences, and barriers to automation adoption.
- Used qualitative and quantitative analysis to extract actionable insights on developer expectations for automated testing tools.
- Compared findings with existing research to highlight gaps between theoretical tool capabilities and practical developer needs.
Experimental results
Research questions
- RQ1How do Android developers typically design and generate test cases in real-world open-source projects?
- RQ2What are the key preferences and challenges developers face when using automated testing tools for Android applications?
- RQ3How do developers perceive code coverage as a measure of test suite quality, and what alternative metrics do they prefer?
- RQ4What characteristics make automated test cases more acceptable and usable in practice, especially regarding reproducibility and debuggability?
- RQ5What design principles should automated testing tools follow to better align with real-world Android development workflows?
Key findings
- A majority of developers (approximately 64%) do not consider code coverage a reliable or important measure of test case quality, preferring metrics like feature coverage or fault detection.
- Developers strongly prefer high-level, expressive test cases organized around use cases or user stories, indicating a need for model-based or usage-model-driven test generation.
- Despite the availability of automated tools, manual testing remains dominant due to concerns over test reproducibility, fragility of automation APIs, and poor debugging support in automated test cases.
- The Android Monkey tool, a widely known random testing tool, has low usage rates among surveyed developers, suggesting limited practical adoption despite its simplicity.
- Developers value test cases that co-evolve with the application and integrate seamlessly into agile workflows, emphasizing low overhead and maintainability.
- There is a significant mismatch between current research on automated testing and actual developer practices, especially regarding test case expressiveness, debuggability, and tool integration.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.