You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

junitreport.xml 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- You may freely edit this file. See commented blocks below for -->
  3. <!-- some examples of how to customize the build. -->
  4. <!-- (If you delete it and reopen the project it will be recreated.) -->
  5. <project name="DMDirc" default="default" basedir=".">
  6. <description>Builds, tests, and runs the project DMDirc.</description>
  7. <property name="clover.jar" location="/home/dmdirc/clover/clover/lib/clover.jar"/>
  8. <taskdef resource="cloverlib.xml" classpath="${clover.jar}"/>
  9. <available property="clover.installed" classname="com.cenqua.clover.CloverInstr" />
  10. <target name="with.clover" depends="clean" if="clover.installed">
  11. <clover-setup>
  12. <fileset dir="src/com/" includes="**/*.java" />
  13. <fileset dir="test/com/" includes="**/*.java" />
  14. </clover-setup>
  15. </target>
  16. <target name="clover.xml" if="clover.installed">
  17. <mkdir dir="reports/clover" />
  18. <mkdir dir="reports/clover/history" />
  19. <clover-historypoint historydir="reports/clover/history" />
  20. <clover-report>
  21. <current outfile="reports/clover/clover.xml"/>
  22. </clover-report>
  23. </target>
  24. <target name="clover.html" if="clover.installed">
  25. <mkdir dir="reports/clover" />
  26. <mkdir dir="reports/clover/history" />
  27. <clover-historypoint historydir="reports/clover/history" />
  28. <clover-report>
  29. <current outfile="reports/clover">
  30. <format type="html"/>
  31. </current>
  32. <historical outfile="reports/clover" historydir="reports/clover/history" />
  33. </clover-report>
  34. </target>
  35. <import file="nbproject/build-impl.xml"/>
  36. <property file="nbproject/project.properties"/>
  37. <property name="test.reports" value="./junitreports" />
  38. <target name="test-html" depends="with.clover,compile-test,test,clover.html"/>
  39. <target name="test-xml" depends="with.clover,compile-test,test,clover.xml"/>
  40. <target name="-post-test-run">
  41. <mkdir dir="${test.reports}" />
  42. <junitreport todir="${test.reports}">
  43. <fileset dir="${build.test.results.dir}">
  44. <include name="TEST-*.xml" />
  45. </fileset>
  46. <report todir="${test.reports}" />
  47. </junitreport>
  48. </target>
  49. </project>