android:junit报告生成

我想在android.Testcase中运行junit测试用例后生成HTml Report,其类型为AndroidTestCase,ProviderTestCase和ServiceTestCase。 和junit报告的任务是: -
<project name="junitreport-problem" default="test" basedir=".">
<target name="test">
<path id="jarfilepath" >
<fileset dir="lib" >
<include name="*.jar" />
</fileset>
</path>
<junit printsummary="true" >
<classpath refid="jarfilepath" />
<classpath location="./bin" />
<!--type is xml, plain or brief. Best practice is xml-->
<!-- usefile attribute determines whether output should be sent
to a file -->
<formatter type="xml" usefile="true" />
<!-- we can use batchtest instead of test task in ant -->
<!-- <test todir="report" name ="com.android.test.PatientContentManagerTestCase" /> -->
<batchtest todir="report">
<fileset dir="src">
<include name="com.android.test.PatientContentManagerTestCase.java" />
</fileset>
</batchtest>
</junit>
<junitreport todir="report">
<fileset dir="report">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="report/html"/>
</junitreport>
</target>
</project>
此任务正在生成空白的html报告, 请在这方面帮助我, candyDhami。     
已邀请:
包含标签是问题:
<include name="com.android.test.PatientContentManagerTestCase.java" />
include:
com.android.test.PatientContentManagerTestCase.java
的名称必须与您自己的测试类的名称相对应。     
最新的Maven Android插件将为您做到这一点。在这里查看更多 http://www.simpligility.com/2011/09/easier-android-test-reporting-with-maven-and-hudson/     

要回复问题请先登录注册