???EMMA???Android?????????
?????chichichichi ???????[ 2016/7/26 14:11:28 ] ????????EMMA ?????? Android
????EMMA?????Java???????????????????????????????EMMA???Android????????????????ο?????? DynoDroid??????????????????ò????BroadcastReceiver????ò??????????????APK???????β??????????????BroadcastReceiver??BroadcastReceiver?и????????????д??SD???????coverage.ec??????С?????????????????????APK?????
????Pre
???????APK??????net.clasnake.project???????????/folder??
????Step 1 ???
????????????EmmaInstrument.rar??????????????????
????EmmaInsrumentation.java
????FinishListener.java
????InstrumentedActivity.java
????SMSInstrumentedReceiver.java
???????????EmmaInstrument?????/folder/src??? ?????????java????????????net.clasnake.project.EmmaInstrument??????InstrumentedActivity????????????Activity?? ??????AndroidManifest.xml??????SMSInstrumentedReceiver??EmmaInstrumentationActivity??
?????????????????????дSD?????:
????Step 2 ????????
?????????豸??adb??????android update project?????????????build.xml????????ant??
?????????????汾??ant instrument??
?????????ant installi??
????Step 3 ????
???????????汾?? adb shell am instrument net.clasnake.project/net.clasnake.project.EmmaInstrument.EmmaInstrumentation
???????в????????????ú?????????á?
???????豸?е??coverage.ec??adb pull /mnt/sdcard/coverage.ec
??????/folder/bin?е??coverage.em????????а????????APP??????????????coverage.ec?????????£???????????????棺
????java -cp ~/adt/sdk/tools/lib/emma.jar emma report -r html -in coverage.em??coverage.ec??
??????????μ?coverage??????????????????棺
????
??????
???·???
??????????????????
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