https://issues.apache.org/bugzilla/show_bug.cgi?id=52237

             Bug #: 52237
           Summary: build.xml file improvement to allow not just plaintext
                    junit logs.
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Packaging
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mha...@redhat.com
    Classification: Unclassified


MOTIVATION:
* be able to generate xml logs from JUnit tests (can then be transformed to
html)
* reuse as much code as available

IMPLEMENTATION:
* added <property name="junit.formatter.type" value="plain"/>
* added <property name="junit.formatter.extension" value=".txt"/>
* removed the default '.txt' junit logs extension
* changed the junit <formatter> to use junit.formatter.{type|extension}
properties

USAGE:
* custom build file including the original one:
<project name="importing" basedir="." default="deploy">
  <import file="build.xml"/>
  <target name="test-xml">
    <antcall target="test">
      <param name="junit.formatter.type" value="xml"/>
      <param name="junit.formatter.extension" value=".xml"/>
    </antcall>
  </target>
</project>

Patch based on 'trunk' branch revision 1205789

Please change the 'Component' field if necessary. 'Packaging' seemed to be the
most appropriate for build.xml changes.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to