Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-452

suitename always = "TestSuite" even if <suitename> defined as property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4, 2.4.1
    • 2.4.2
    • TestNG support
    • None
    • Maven version: 2.0.8
      Java version: 1.5.0_14
      OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

      and also on Linux
    • Patch

    Description

      Using surefire and testng with no testng.xml but with <cofiguration>, the generated standard output xml always have suite name="TestSuite".
      This is an issue while using CruiseControl and JUnitReport to generate a JUnit report.
      Here is the configuration in my pom file:
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.4.1</version>
      <configuration>
      <testFailureIgnore>true</testFailureIgnore>
      <groups>fast</groups>
      <excludedgroups>broken</excludedgroups>
      <properties>
      <property>
      <name>suitename</name>
      <value>${artifactId}</value>
      </property>
      <property>
      <name>testname</name>
      <value>${artifactId}</value>
      </property>
      </properties>
      </configuration>
      </plugin>

      There is an attached patch too.

      Attachments

        1. TestNGDirectoryTestSuite.java
          8 kB
          Erez Nahir
        2. TestNGDirectoryTestSuite.java
          8 kB
          Erez Nahir

        Activity

          People

            Unassigned Unassigned
            enahir Erez Nahir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: