| Joe Malin | 5e17347 | 2010-05-07 21:30:44 -0700 | [diff] [blame] | 1 | page.title=Testing Overview |
| 2 | @jd:body |
| 3 | |
| 4 | <p> |
| 5 | Android includes powerful tools for setting up and running test applications. |
| 6 | Whether you are working in Eclipse with ADT or working from the command line, these tools |
| 7 | help you set up and run your tests within an emulator or the device you are targeting. |
| 8 | The documents listed below explain how to work with the tools in your development environment. |
| 9 | </p> |
| 10 | <p> |
| 11 | If you aren't yet familiar with the Android testing framework, please read the topic |
| 12 | <a href="{@docRoot}guide/topics/testing/testing_android.html">Testing and Instrumentation</a> |
| 13 | before you get started. |
| 14 | For a step-by-step introduction to Android testing, try the <a |
| 15 | href="{@docRoot}resources/tutorials/testing/helloandroid_test.html">Hello, Testing</a> |
| 16 | tutorial, which introduces basic testing concepts and procedures. |
| 17 | For a more advanced tutorial, try <a |
| 18 | href="{@docRoot}resources/tutorials/testing/activity_test.html">Activity Testing</a>, |
| 19 | which guides you through a more complex testing scenario. |
| 20 | </p> |
| 21 | <dl> |
| 22 | <dt><a href="testing_eclipse.html">Testing in Eclipse, with ADT</a></dt> |
| 23 | <dd> |
| 24 | The ADT plugin lets you quickly set up and manage test projects directly in |
| 25 | the Eclipse UI. Once you have written your tests, you can build and run them and |
| 26 | then see the results in the Eclipse JUnit view. You can also use the SDK command-line |
| 27 | tools to execute your tests if needed. |
| 28 | </dd> |
| 29 | <dt><a href="testing_otheride.html">Testing in Other IDEs</a></dt> |
| 30 | <dd> |
| 31 | The SDK command-line tools provide the same capabilities as the ADT plugin. You can |
| 32 | use them to set up and manage test projects, build your test application, |
| 33 | run your tests, and see the results. You use |
| 34 | the <code>android</code> tool to create and manage test projects, the Ant build system |
| 35 | to compile them, and the <code>adb</code> tool to install and run them. |
| 36 | </dd> |
| 37 | </dl> |