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

junit-dep 4.4 isn't detected; tests are treated as POJO tests.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.4
    • Junit 4.x support
    • None

    Description

      Run "mvn test" with the attached project. The setup will fail as "setup" never runs.

      This test depends on junit:junit-dep rather than junit:junit. junit-dep is just like regular junit, except it doesn't bundle hamcrest in the junit jar; junit-dep.jar includes only junit.* stuff. The junit-dep pom depends on hamcrest-core 1.1.

      Surefire fails to detect junit:junit-dep and treats the test as a POJO test.

      Attachments

        1. junit44-dep.zip
          2 kB
          Daniel Fabulich

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dfabulich Daniel Fabulich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: