Testng测试报告美化buid.xml配置

<?xml version="1.0" encoding="UTF-8"?>
<project name="myproject" basedir="." default="transform">
     <echo message="The base dir is: ${basedir}"/>
      <property name="lib.dir" value="jar"/>
         <echo message="The base dir is: ${lib.dir}"/>
    <path id="test.classpath">
         <!-- adding the saxon jar to your classpath -->
         <fileset dir="${lib.dir}" includes="*.jar"/>
    </path>

    <target name="transform">
        <xslt in="${basedir}\test-output\testng-results.xml" style="${basedir}\test-output\testng-results.xsl"
              out="${basedir}\test-output\testReport.html">
            <param name="testNgXslt.outputDir" expression="${basedir}\test-output"/>
            <classpath refid="test.classpath"/>
        </xslt>
    </target>
</project>

 

posted @ 2016-07-07 15:12  苦逼IT男  阅读(399)  评论(0编辑  收藏  举报