Android?μ?Junit????
???????????? ???????[ 2015/10/26 14:12:13 ] ?????????????????? ???????
????Android SDK 1.5?????JUnit????????????ù???Σ?????????????????????????????????????д?????????????£?????????????????д????????????Android?μ?Junit???java?μ?junit????????????飬????????~
????Junit???
????JUnit??????????java????????????1997???? Erich Gamma ?? Kent Beck ??????ɡ???????????? Erich Gamma ?? GOF ?????????Kent Beck ?? XP (Extreme Programming)???????????????Window XP????????“?????С??????????” JUnit??????С?????????????????Junit??TDD(Test Driven Development)?????????????з???????junit???????????????Android??junit??????????????????????????????
????JUnit???Щ?????
????1) ????API????????д????????????????????????????
????2) ?????????????????????????????????????
????3) ?????????????????????е????
????4) ??????????????ü????????????????????????
????5) ????????????????????
????Android Junit Demo
????????GoogleJunit??????????????Test Case:
public class BookCase extends AndroidTestCase {
public void test(){
Log.i("BookCase"?? "????");
}
}
????AndroidTestCase?????????????TestCase?????????????????????е???????AndroidManifest.xml??????£?
???????????????????application???????uses-library??
????????????????????????Run AS=>Android Junit Test?????????:
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11