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

support junit 4.0

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3
    • Junit 4.x support
    • None

    Description

      I know this is a pretty sizable task. I just wanted to get it in the system now that 4.0 has officially been released. Hopefully this will generate some discussion about how 4.0 will be handled - mainly if it will require a completely seperate implemenation of surefire (keeping the same API so it can easily be used by the maven plugin), or if use of 4.0 will be made a configurable option of the current surefire.

      Here's some additional features I'd like to see:
      1. Ability to categorize tests. Unfortunately, 4.0 doesn't include an @Category annotation, or make category a parameter of @Test. However, the filtering mechanism provided by 4.0 is sufficent to support categories given the presense of such an annotation. I recommend putting the @Category annotation in a seperate module (surefire-annotations?) and build support for it into surefire. Hopefully the junit guys could be convinced to incorporate it in a later version.
      2. Similarly, support repeated tests via an @Repeated annotation. I'm not sure how easy this would be to do external to junit.

      Attachments

        1. surefire-junit4.zip
          63 kB
          John Didion
        2. SUREFIRE-31-maven-surefire-plugin.patch
          1 kB
          Bernd
        3. SUREFIRE-31-surefire-trunk.patch
          14 kB
          Bernd
        4. SUREFIRE31_karl_maven-surefire-plugin.patch
          2 kB
          Karl M. Davis
        5. SUREFIRE31_karl_surefire_surefire-providers_surefire-junit.patch
          21 kB
          Karl M. Davis
        6. SUREFIRE31_karl_surefire_surefire-providers_surefire-junit_2ndMethod.patch
          5 kB
          Karl M. Davis
        7. surefire-junit4.patch
          24 kB
          Tom Huybrechts
        8. surefire-junit4.patch
          27 kB
          Tom Huybrechts

        Issue Links

          Activity

            People

              jvanzyl Jason van Zyl
              jdidion John Didion
              Votes:
              75 Vote for this issue
              Watchers:
              46 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: