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

Improper TestCase classes incorrectly reported as a failure of the TestSuite class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.7.2
    • JUnit 3.x support
    • None
    • OS X 10.5, JDK 1.5.0_13, Maven 2.0.8

    Description

      surefire creates a synthetic TestSuite from all concrete classes that match its include configuration. If one of these classes is not a proper JUnit TestCase (for example if it contains no test methods) surefire reports this as a test failure on the junit.framework.TestSuite$1 class, within the summary and surefire report, instead of an issue with the improper test class. It does correctly flag the improper class as a failure as the plugin reports the test results on console but if you have many tests its easy to miss this.

      It would be nice if, in the summary and the report, the improper test class can be flagged as the failing class instead of the TestSuite class.

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            clajoie Chad La Joie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: