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

Surefire finds test classes but ignores test methods and configuration methods with TestNG and includes tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0 (2.2 plugin)
    • 2.3
    • None
    • None
    • Maven 2.0.4
      Surefire Plugin 2.2
      TestNG 4.7 jdk15 (using annotations)
      Sun JDK 1.5_06
      Windows XP SP 2

    Description

      Attachment contains 2 projects which are identical except for how the test cases are referenced. In one project they are referenced via a suite xml file. In the second they are referenced using the includes tag. I believe they should produce identical results.

      Both projects find all 6 test classes, but only the one using a suite xml file actually executes the configuration methods and test methods. The project using an includes tag completely ignores the configuratiion methods and test methods.

      Attachments

        1. surefire-patch.txt
          5 kB
          Jesse Kuhnert
        2. maven-surefire-plugin-patch.txt
          0.9 kB
          Jesse Kuhnert
        3. maven2-testng.zip
          11 kB
          Mark Reynolds

        Issue Links

          Activity

            People

              fgiust Fabrizio Giustina
              tailwaggers Mark Reynolds
              Votes:
              10 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: