Android Testing Fundamentals 1, unit test

Android 的单元测试case是Component-specific的。在写case时应该针对组件的类型选择适当的测试基类。(注,Android does not provide a separate test case class for BroadcastReceiver.)

核心类图如下:

Android Testing Fundamentals 1, unit test_第1张图片

相关辅助类:

Assert

MoreAsserts

ViewAsserts



Demo see https://github.com/cheyiliu/androidUnitTest


更多参考:

http://developer.android.com/tools/testing/testing_android.html

http://blog.csdn.net/fox64194167/article/details/7542605

你可能感兴趣的:(android,test,unit)