The Android compilation and testing tool needs to test the structure of the project's organization that conforms to the reservation: Test case class, test kit, and testing project.
JUnit is the basis for the testing of Android, in general, a juint test for a statement that tests a part of an application. You can organize multiple test methods to form a test case, and multiple test cases can be Suites. Each test method is relatively independent, and a testing class, Tests class, contains a set of related test or other helper methods.
On the Android platform, you can use the test tool to transfer the test package and the application to be tested, and then execute Test runner to run the testing case.
To create a test project by using the Eclipse ADT tool:
1. Create the test project while creating the application, as shown below
Select Create a test project, ADT automatically creates corresponding test projects for the application