android開發指南上講(what to test):
1.activity的生命周期事件,要看application state 是否如預期.
2.數據庫操作(好像沒事務處理,不知是否應該模擬?).
3.屏幕大小與解析(如果是app store 上的應用肯定要針對主流的size,以及不同的版本作測試).
接下來我們在實際的應用開發中,以TDD的方式來驅動開發,重點應關注如上.
在activity test它又說:
1.Initial conditions test(初始條件 測試oncreate())
2.UI test
3.State management tests
總的來說是:對組件要做兩種測試,一是隔離測試(內),另外是容器內測試(外).是不是跟設計原則有點像呢?高內聚低耦合,里里外外都要測個夠.
分享到:
相关推荐
The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Features Application framework enabling reuse and ...
36 What is deflation?
该文档介绍了SOA和Heterogeneity中的相关内容,告诉我们什么是Dotci,并详细的介绍了Docker和Dotci的共同应用,在此基础上,简介了Docker和Dotci的常用工具和环境。
本书详细介绍了数学的各个分支。对于有需要了解数学方法的程序员有很大的帮助。
KISS is a blazingly fast launcher for android requiring nearly no memory to run. Join the G community to get download instruction for the beta version. > See contributing for details on how to help ...
Added material on the Espresso Test Recorder to the chapter on Espresso Updated the coverage of consuming documents with a new “diceware” sample and the use of the CWAC-Document library Updated the ...
【学海导航】2014版高考英语一轮总复习 Module6 Unit2 "What is happiness to you?" 同步训练主要关注的是英语语法、词汇和句型的应用,旨在帮助学生提升英语综合能力,为高考做好准备。以下是针对题目内容进行的...
Cyborg is a framework layer over Android, one that will save you at least 50% of development time, and the code you are used to write while developing Android. If you are an Android developer then you...
This jar enables to use Android's internal/hidden APIs in development. What is Android internal and hidden APIs? The internal API is located in the ...
牛津小学英语 1BUnit 7 What’s that?Story time 课件+音视频
Using machine learning in real-world production systems is complicated by a host of issues not found in small toy examples or even large offline research experiments.
• Adds more to the Android P coverage, including: ◦ A dedicated chapter on publising slices ◦ BiometricPrompt (as the replacement for FingerprintDialog, which itself replaces the now-deprecated ...
在Android应用开发中,优化性能是一项至关重要的任务,它直接影响到用户体验和应用的市场竞争力。以下是一些关键的策略和技巧,可以帮助开发者提高Android应用的性能。 1. **减少资源消耗**:Android应用应尽可能地...
However, the documentation does not stipulate what HTML tags are supported, which makes this method a bit hit-or-miss. This small library provides a fluent API for building valid ...
Android 应用程序中,消息处理机制是其异步编程的核心组成部分,主要涉及三个关键组件:Handler、Message和Looper。这种机制使得应用可以有效地管理线程间的通信,避免阻塞主线程,提升用户体验。 首先,我们需要...
This sample is deprecated. For a Firebase v3.x sample see: ...demonstrates binding Firebase to an Android ListView. Firebase keeps the list data up to date based on a mapping to a model class. More abo
/ What can I get for you today ? 2 May / Can I take your order ? 您要吃點什麼? 3 What will it be ? 您要點什麼? 4 For here or to go ? / Stay or to go ? / Is that for here or to go ? ——For here ...
GitHub Status uses the Android Support Library for the provided components, even though it only supports ICS and above. It also leverages Gson and OkHttp for network connections and decoding JSO