spring

java花园

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  4 随笔 :: 0 文章 :: 1 评论 :: 0 Trackbacks

2005年9月6日 #

在c建立server目录
安装jrockit,并将JAVA_HOME设到

posted @ 2005-09-07 16:32 java花园 阅读(319) | 评论 (0)编辑 收藏

 
    
    
<target name="junit" depends = "build" description="Execute Unit Tests">
        
<tstamp/>
        
<echo>${build.dir}echo>            
        
<junit printsummary ="yes">
            
<formatter type ="plain"/>        
            
<formatter type ="xml"/>        
             
<batchtest todir="${report.dir}">
               
<fileset dir="../${build.dir}" includes="**/WebControllerTest.class" />
           
batchtest>
        
junit>        
        
<mkdir dir="${report.dir}/html"/>        
        
<junitreport todir="${report.dir}">            
           
<fileset dir="${report.dir}">
               
<include name="TEST*-*.xml"/>
           
fileset>
            
<report format="noframes" todir ="${report.dir}/html"/>
        
junitreport>
    
target>

关键是   才能输出html报表,noframes是单页报表
posted @ 2005-09-06 12:04 java花园 阅读(631) | 评论 (1)编辑 收藏