????EMMA????????????????????????????????????????????

???????????????EMMA?????????????????????????????????????????????????????????У?????????????????????

????EMMA??????????????Cobertura(???????????????EMMA????????)????ο?????Ant+JUnit+Cobertura??????????????????? http://ouzhong.blog.hexun.com/32368833_d.html EMMA???????????????????????????EMMA??????????С???Cobertura??????????????????JCoverage????????и????

??????????????????????????????Ant?????????????????????????????С?

???????????????EMMA jars ???lib??????С?http://emma.sourceforge.net/

????-->

????metrics="method:70??block:80??line:80??class:100">

????columns="name??class??method??block??line" encoding="UTF-8"/>

????????????????????????

????1???????????????????????????????????????????б??????ant?????????????instrument(???????·?? ${classes.src} ?е?Java??????????)?????gen-report-coverage(???????????)?????????????????????????????????????????????true???????????????emma.enabled??Ч??

????????????n?????....

????2 ?????? java ??????? UTF-8 ???? GB2312/GBK ???????е??????????????????

?????ο?????? http://emma.sourceforge.net/reference/ch02s04s02.html

?????????????

??????

???????

????????? java ?????????? gb2312 ???? gbk ?????????????????????;??? java ?????? utf-8 ??????????

????3 ?????????????? “ line?? % ????棬????? java ????????? ” ?

?????????????????Σ? < javac classpath = "${build.java.dir}" srcdir = "${src.java.dir}" destdir = "${build.java.dir}"

????fork = "true" source = "1.5" target = "1.5" debug = "true" >

????< classpath refid = "compile.classpath" />

?????????????????????????????? debug ????????? debug = "true" ?? debug="on" ??????????

????4??emma????????????棬report??sourcepath??????????src·???????????????ж??src·????????и????????????????????д??

????...

?????????src·???ò???????classpath????????????????window?÷??????????????????????

?????ο????????

????1 ?? EMMA ????????( http://emma.sourceforge.net/ )

????????? http://emma.sourceforge.net/reference/reference.html

????http://emma.sourceforge.net/docs.html#Reference+Documentation

????3 ?? ????? MMA ?????? ?? ???????

????4 ?? ?? Emma ?? Eclipse ??????д??????????

????5 ?? ???????????????