curcuru 02/01/24 09:22:55
Modified: test build.xml ResultScanner.xsl
Log:
Add 'scan' target to easily call ResultScanner;
update ResultScanner output to include pathnames in links
Revision Changes Path
1.35 +10 -0 xml-xalan/test/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-xalan/test/build.xml,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- build.xml 18 Jan 2002 19:30:33 -0000 1.34
+++ build.xml 24 Jan 2002 17:22:54 -0000 1.35
@@ -680,6 +680,16 @@
description="Alias for alltest">
</target>
+ <target name="scan"
+ description="Run a simple ResultScanner on a tree of test results">
+ <property name="scan.outputDir" value="results-alltest" />
+ <property name="scan.logFile" value="${scan.outputDir}/ResultReport" />
+ <java classname="org.apache.qetest.xsl.ResultScanner"
+ classpathref="conf.class.path"
+ fork="yes" >
+ <arg line="${scan.outputDir} ${scan.logFile}"/>
+ </java>
+ </target>
<!-- ================================================================== -->
<!-- Build Tests: Compile/jar targets for each 'layer' of testing code -->
<!-- ================================================================== -->
1.2 +3 -2 xml-xalan/test/ResultScanner.xsl
Index: ResultScanner.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/ResultScanner.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ResultScanner.xsl 17 Jan 2002 20:36:23 -0000 1.1
+++ ResultScanner.xsl 24 Jan 2002 17:22:54 -0000 1.2
@@ -28,9 +28,10 @@
<!-- A table of all fail results -->
<h3>All bad results:</h3>
<xsl:for-each select="testgroup/teststatus[@status = $badResult]">
+ <xsl:variable name="linkname" select="concat(../@href, '/', @href)" />
<xsl:element name="a">
- <xsl:attribute name="href">#<xsl:value-of select="concat(../@href, '/',
@href)"/></xsl:attribute>
- <xsl:value-of select="@href"/>
+ <xsl:attribute name="href">#<xsl:value-of
select="$linkname"/></xsl:attribute>
+ <xsl:value-of select="$linkname"/>
</xsl:element>
<br/>
</xsl:for-each>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]