????????
????1????Android studio ???????????ū???????????????Android studio???????????(?????????????????ū????)???????е?????????
????????????????硣?????ū???Android junit??
????2?????????????Eclipse??????ù?Android junit?????Eclipse??Android Junit?????ù??????????????
?????????????????
????1??????Demo?????https://github.com/googlesamples/android-testing-templates.git
??????????https://sites.google.com/a/android.com/tools/tech-docs/unit-testing-support
????2??????
????· ????demo??

????· ??????????java????????????
????// Dependencies for local unit tests
????testCompile 'junit:junit:' + rootProject.ext.junitVersion
????testCompile 'org.mockito:mockito-all:' + rootProject.ext.mockitoVersion
????testCompile 'org.hamcrest:hamcrest-all:' + rootProject.ext.hamcrestVersion
????· ??????Android??Junit??????
????// Android Testing Support Library's runner and rules
????androidTestCompile 'com.android.support.test:runner:' + rootProject.ext.runnerVersion
????androidTestCompile 'com.android.support.test:rules:' + rootProject.ext.rulesVersion
????· ????   defaultConfig ??????

????defaultConfig {
????testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
????}