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

junit-dep 4.4+ isn't detected - transitive dependency to JUnit-3.x causes POJO-test treatment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.3
    • 2.7.2
    • Junit 4.x support
    • None
    • $ mvn --version
      Maven version: 2.0.9
      Java version: 1.6.0_07
      OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

    Description

      Have a dependency to junit-dep version 4.4 or later and a transitive or optional dependency to junit-3.8.1 and suddenly the fix for SUREFIRE-378 has been deceived. Your JUnit4 tests will again be executed as if they were POJO-tests.

      The attached maven-project reveals the bug.

      Attachments

        1. junitdep45-and-transitive-junit3-dependency.zip
          6 kB
          Henrik Kaipe
        2. surefire519-fix-and-test.patch
          6 kB
          Henrik Kaipe

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              kaipe Henrik Kaipe
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: