About Unit Test In Android(安卓单元测试研究,附技术分享ppt)
Posted simplify20
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了About Unit Test In Android(安卓单元测试研究,附技术分享ppt)相关的知识,希望对你有一定的参考价值。
what is unit test?
单元测试中的单元是一个系统或一个程序的组成部分,单元测试就是要对这些组成部分进行独立地、隔离地以某种约束和规则进行的测试,以发现每一部分的问题或者确定该部分不存在问题。Essentially, a unit test is a method that instantiates a small portion of our application and verifies its behavior independently from other parts. A typical unit test contains 3 phases: First, it initializes a small piece of an application it wants to test (also known as the system under test, or SUT), then it applies some stimulus to the system under test (usually by calling a method on it), and finally, it observes the resulting behavior. If the observed behavior is consistent with the expectations, the unit test passes, otherwise, it fails, indicating that there is a problem somewhere in the system under test.
也即,单元测试实例化系统的一小部分,然后相对独立地确定此部分的行为是否正确。
why unit test?
The goal of android unit test is to isolate eac
以上是关于About Unit Test In Android(安卓单元测试研究,附技术分享ppt)的主要内容,如果未能解决你的问题,请参考以下文章