buildframework/helium/external/helium-antlib/build.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 217 0f5e3a7fb6af
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
    22 -->
    22 -->
    23 <project name="helium-antlib" default="build" xmlns:au="antlib:org.apache.ant.antunit">
    23 <project name="helium-antlib" default="build" xmlns:au="antlib:org.apache.ant.antunit">
    24     <description>Helium Antlib build file.</description>
    24     <description>Helium Antlib build file.</description>
    25     
    25     
    26     <property environment="env" />
    26     <property environment="env" />
    27     
    27 
       
    28     <dirname property="helium.antlib.root.dir" file="${ant.file.helium-antlib}" />    
       
    29 
    28     <import file="macros.ant.xml" />    
    30     <import file="macros.ant.xml" />    
    29     
    31     
    30     
    32     
    31     <path id="subant.build.files">
    33     <path id="subant.build.files">
    32         <fileset dir="." includes="core/build.xml" />
    34         <fileset dir="." includes="core/build.xml" />
    50     </target>
    52     </target>
    51     
    53     
    52     
    54     
    53     <target name="junit" description="Runs jUnit tests">
    55     <target name="junit" description="Runs jUnit tests">
    54         <subantPreset target="junit"/>
    56         <subantPreset target="junit"/>
       
    57         <antcall target="merge-coverage" />
    55     </target>
    58     </target>
    56     
    59     
    57     
    60     
    58     <target name="unittest" description="Runs AntUnit tests">
    61     <target name="unittest" description="Runs AntUnit tests">
    59         <subantPreset target="unittest"/>
    62         <subantPreset target="unittest"/>
       
    63         <antcall target="merge-coverage" />
    60     </target>
    64     </target>
    61     
    65     
    62     
    66         
    63     <target name="test" description="Runs all tests">
    67     <target name="test" description="Runs all tests">
    64         <subantPreset target="test"/>
    68         <subantPreset target="test"/>
       
    69         <antcall target="merge-coverage" />
    65     </target>
    70     </target>
    66     
    71     
    67 
       
    68     <target name="clean" description="Cleans build outputs">
    72     <target name="clean" description="Cleans build outputs">
    69         <subantPreset target="clean"/>
    73         <subantPreset target="clean"/>
    70     </target>
    74     </target>
    71 
    75 
       
    76     <target name="merge-coverage">
       
    77         <emma enabled="true">
       
    78             <report>
       
    79                 <sourcepath>
       
    80                     <dirset dir="${helium.antlib.root.dir}" >
       
    81                         <include name="**/src" /> 
       
    82                     </dirset>
       
    83                 </sourcepath>
       
    84                 <infileset dir="${build.temp.dir}" includes="**/*.emma" />
       
    85                 <txt outfile="${build.temp.dir}/coverage.txt" />
       
    86                 <html outfile="${build.temp.dir}/coverage.html" />
       
    87                 <xml outfile="${build.temp.dir}/coverage.xml" />
       
    88             </report>
       
    89         </emma>
       
    90     </target>
       
    91     
    72 </project>
    92 </project>
    73 
    93 
    74 
    94