Testing Fundamentals
Testing framework包含以下几种资源:
1 Android 的测试组件是基于JUnit的
2 The Android JUnit extensions provide component-specific test case classes
3 Test suites are contained in test packages that are similar to main application packages
4 The SDK tools for building and tests are available in Eclipse with ADT, and also in command-line form for use with other IDEs.
5 The SDK also provides monkeyrunner, an API for testing devices with Python programs, and UI/Application Exerciser Monkey, a command-line tool for stress-testing UIs by sending pseudo-random events to a device
项目右键 Android tools->add new Test Project,也可以直接eclipse新建一个Test Project。
android ApiDemo导入的时候,tests项目需要在java build path->project 中添加ApiDemo。