You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2006/08/22 07:00:56 UTC

svn commit: r433519 - /ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/listener/XMLAntUnitListener.java

Author: bodewig
Date: Mon Aug 21 22:00:55 2006
New Revision: 433519

URL: http://svn.apache.org/viewvc?rev=433519&view=rev
Log:
make XML report a bit prettier

Modified:
    ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/listener/XMLAntUnitListener.java

Modified: ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/listener/XMLAntUnitListener.java
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/listener/XMLAntUnitListener.java?rev=433519&r1=433518&r2=433519&view=diff
==============================================================================
--- ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/listener/XMLAntUnitListener.java (original)
+++ ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/listener/XMLAntUnitListener.java Mon Aug 21 22:00:55 2006
@@ -82,6 +82,7 @@
 
             domWri.writeXMLDeclaration(wri);
             domWri.openElement(root, wri, 0, INDENT, true);
+            wri.write(StringUtils.LINE_SEP);
         } catch (IOException ex) {
             throw new BuildException(ex);
         }
@@ -123,6 +124,7 @@
                                                       XMLConstants.TESTCASE);
             currentTest.setAttribute(XMLConstants.ATTR_NAME, target);
             domWri.openElement(currentTest, wri, 1, INDENT, true);
+            wri.write(StringUtils.LINE_SEP);
         } catch (IOException ex) {
             throw new BuildException(ex);
         }



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


Re: svn commit: r433519 - /ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/listener/XMLAntUnitListener.java

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 23 Aug 2006, Steve Loughran <st...@apache.org> wrote:

>> make XML report a bit prettier
> 
> For the smartfrog xml junit reporting, I can stick out XHTML content
> instead of dumb XML. That means that the results are ready-to-read,
> without any XSL operation.

I intend to add new stylesheets so that you can run <junitreport> on
it.  Because of this I try to remain as close to the JUnit test report
format as possible (<junitreport> performs some internal magic while
merging the reports) while making it possible to stream the report at
the same time.

We can always add an XHTML listener as well.

Stefan

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


Re: svn commit: r433519 - /ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/listener/XMLAntUnitListener.java

Posted by Steve Loughran <st...@apache.org>.
bodewig@apache.org wrote:
> Author: bodewig
> Date: Mon Aug 21 22:00:55 2006
> New Revision: 433519
> 
> URL: http://svn.apache.org/viewvc?rev=433519&view=rev
> Log:
> make XML report a bit prettier
> 

For the smartfrog xml junit reporting, I can stick out XHTML content 
instead of dumb XML. That means that the results are ready-to-read, 
without any XSL operation.

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