ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r374314 - in /ant/core/trunk/src: etc/testcases/taskdefs/optional/junitreport.xml testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
Date Thu, 02 Feb 2006 09:02:50 GMT
Author: jhm
Date: Thu Feb  2 01:02:11 2006
New Revision: 374314

URL: http://svn.apache.org/viewcvs?rev=374314&view=rev
Log:
Bug 38477: testcase, but couldnt see that error

Modified:
    ant/core/trunk/src/etc/testcases/taskdefs/optional/junitreport.xml
    ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

Modified: ant/core/trunk/src/etc/testcases/taskdefs/optional/junitreport.xml
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/taskdefs/optional/junitreport.xml?rev=374314&r1=374313&r2=374314&view=diff
==============================================================================
--- ant/core/trunk/src/etc/testcases/taskdefs/optional/junitreport.xml (original)
+++ ant/core/trunk/src/etc/testcases/taskdefs/optional/junitreport.xml Thu Feb  2 01:02:11
2006
@@ -1,12 +1,12 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="ISO-8859-1"?>
 
 <project name="junitreport-test" basedir="." default="reports">
 
     <property name="jrdir" location="junitreport"/>
     <property name="outputdir" location="${jrdir}/test"/>
 
-    <!-- reports1 take care of transformation of 2 test result files and 
-         produce reports according to the default format (frames) 
+    <!-- reports1 take care of transformation of 2 test result files and
+         produce reports according to the default format (frames)
          needed for testNoFileJunitNoFrames -->
     <target name="reports1">
         <mkdir dir="${outputdir}"/>
@@ -29,7 +29,7 @@
             <report todir="${outputdir}/html"/>
         </junitreport>
     </target>
-    
+
     <target name="testIncompleteFile">
         <mkdir dir="${outputdir}/html"/>
         <junitreport todir="${outputdir}">
@@ -40,7 +40,7 @@
             <report todir="${outputdir}/html"/>
         </junitreport>
     </target>
-    
+
     <target name="testWrongElement">
         <mkdir dir="${outputdir}/html"/>
         <junitreport todir="${outputdir}">
@@ -50,7 +50,7 @@
             </fileset>
             <report todir="${outputdir}/html"/>
         </junitreport>
-    </target>    
+    </target>
 
     <target name="testNamespace">
         <mkdir dir="${outputdir}/html"/>
@@ -61,19 +61,48 @@
             </fileset>
             <report todir="${outputdir}/html"/>
         </junitreport>
-    </target>        
-    
+    </target>
+
     <target name="clean">
         <delete dir="${outputdir}"/>
     </target>
 
-  <target name="testStackTraceLineBreaks">
-    <mkdir dir="${outputdir}/html"/>
-    <junitreport todir="${outputdir}">
-      <fileset dir="${jrdir}">
-        <include name="TEST-*.xml"/>
-      </fileset>
-      <report todir="${outputdir}/html"/>
-    </junitreport>
-  </target>        
-</project>
+    <target name="testStackTraceLineBreaks">
+        <mkdir dir="${outputdir}/html"/>
+        <junitreport todir="${outputdir}">
+            <fileset dir="${jrdir}">
+                <include name="TEST-*.xml"/>
+            </fileset>
+            <report todir="${outputdir}/html"/>
+        </junitreport>
+    </target>
+
+    <target name="testSpecialSignsInSrcPath">
+        <mkdir dir="${outputdir}/html"/>
+        <mkdir dir="${outputdir}/test# $$%§&amp;-!cases"/>
+        <copy todir="${outputdir}/test# $$%§&amp;-!cases">
+            <fileset dir="junitreport" includes="TEST-*.xml"/>
+        </copy>
+        <junitreport todir="${outputdir}/html">
+            <fileset dir="${outputdir}/test# $$%§&amp;-!cases">
+                <include name="TEST-*.xml"/>
+            </fileset>
+            <report todir="${outputdir}/html"/>
+        </junitreport>
+    </target>
+
+    <target name="testSpecialSignsInHtmlPath">
+        <mkdir dir="${outputdir}/html# $$%§&amp;-!report"/>
+        <mkdir dir="${outputdir}/test"/>
+        <copy todir="${outputdir}/test">
+            <fileset dir="junitreport" includes="TEST-*.xml"/>
+        </copy>
+        <junitreport todir="${outputdir}/html# $$%§&amp;-!report">
+            <fileset dir="${outputdir}/test">
+                <include name="TEST-*.xml"/>
+            </fileset>
+            <report todir="${outputdir}/html# $$%§&amp;-!report"/>
+        </junitreport>
+    </target>
+
+</project>
\ No newline at end of file

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java?rev=374314&r1=374313&r2=374314&view=diff
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
(original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
Thu Feb  2 01:02:11 2006
@@ -106,5 +106,19 @@
         }
     }
 
-}
 
+    // Bugzilla Report 38477
+    public void testSpecialSignsInSrcPath() throws Exception {
+        executeTarget("testSpecialSignsInSrcPath");
+        if (! new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html").exists())
{
+            fail("No index.html present. Not generated?");
+        }
+    }
+    public void testSpecialSignsInHtmlPath() throws Exception {
+        executeTarget("testSpecialSignsInHtmlPath");
+        if (! new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html#
$%§&-!report/index.html").exists()) {
+            fail("No index.html present. Not generated?");
+        }
+    }
+
+}
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message