`

JUnit PDF Report :share your tests

阅读更多
Getting started
Using JUnit PDF Report essentials

The fastest method to integrate JUnit PDF Report into your project, is by using the essentials distribution.
This distribution contains everything you need, including dependencies.

You need:
A working copy of Ant with JUnit support.

The JUnit PDF Report essentials distribution installed somewhere on your computer.

Creating your report:

Add this line to your Ant build.xml script:
导入你的junitpdfreport路径
<import file="/path/to/build-junitpdfreport.xml"/>

(/path/to/ is the location where you installed JUnit PDF Report essentials distribution)

Add this target to your Ant build.xml script:

<target name="testreport-pdf">
  <junitpdfreport todir="." styledir="default">

    /location/to/your/junit/xml/testresults为junit的XML

    <fileset dir="/location/to/your/junit/xml/testresults">
      <include name="TEST-*.xml"/>
    </fileset>
  </junitpdfreport>

</target> 

(/location/to/your/junit/xml/testresults is the location where your junit test results are)

From the command prompt, run:
运行testreport-pdf
> ant testreport-pdf

You will find the PDF report in your project base directory.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics