Mercurial > public > develkit
comparison ssdt-common-build.xml @ 45:cc9b1cd6098b
add macro for summary text junit report
author | smith@nwoca.org |
---|---|
date | Thu, 09 Jun 2011 11:57:56 -0400 |
parents | 9480be99ec76 |
children | 8b682fce9900 |
comparison
equal
deleted
inserted
replaced
44:714576165aba | 45:cc9b1cd6098b |
---|---|
117 path="${web.context.path}" | 117 path="${web.context.path}" |
118 config="${build.web.dir.path}/META-INF/context-dev.xml" | 118 config="${build.web.dir.path}/META-INF/context-dev.xml" |
119 /> | 119 /> |
120 <delete file="${build.web.dir.path}/META-INF/context-dev.xml" failonerror="false"/> | 120 <delete file="${build.web.dir.path}/META-INF/context-dev.xml" failonerror="false"/> |
121 </target> | 121 </target> |
122 <macrodef name="junit-summary" | |
123 description="creates a summary of junit results" | |
124 uri="http://www.ssdt-ohio.org/ant/common"> | |
125 <attribute name="dir" description="JUNIT test results" default="${build.test.results.dir}"/> | |
126 <attribute name="file" description="output file" default="${build.test.results.dir}/summary.txt"/> | |
127 <sequential> | |
128 <junitreport tofile="@{dir}/combined.xml"> | |
129 <fileset dir="@{dir}"> | |
130 <include name="TEST-*.xml"/> | |
131 </fileset> | |
132 </junitreport> | |
133 <xslt in="@{dir}/combined.xml" out="@{file}"> | |
134 <style> | |
135 <javaresource name="org/ssdt_ohio/tools/ant/junit-summary_1.xsl" classpath="${user.home}/.ant/lib/ssdt-ant.jar"/> | |
136 </style> | |
137 </xslt> | |
138 </sequential> | |
139 </macrodef> | |
122 | 140 |
123 </project> | 141 </project> |