Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5397

Add in jboss-junit-configuration system property to scripts targets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.3.0.GA_CP09
    • 4.3.0.GA_CP09
    • Testsuite
    • None
    • Not Required

      The targets tests-scripts and tests-scripts-noserver make use of the XMLJUnitMultipleResultFormatter class to differentiate output between multiple runs of the same junit task:

      <sysproperty key="jboss-junit-configuration" value="scripts"/>
      <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter" usefile="${junit.formatter.usefile}" extension="-scripts.xml"/>

      The first line is used by org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter to define an extended name for the test class, and this causes the extended names to appear in the test reports.
      The second line defines the formatter class but also causes the output for the test (i.e. TEST-org.jboss.test...) to be written to a file with an extended file name, ending in this example with -scripts.xml.

      In the two test targets mentioned above, the system property was missing, so although the output was being written to distinct files, the test cases reports were not showing the differentaited output.

      This jira issue adds in the missing system properties to $JBOSS_SRC/testsuite/build.xml

              rachmato@redhat.com Richard Achmatowicz
              rachmato@redhat.com Richard Achmatowicz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: