Maven Surefire

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.4
  • Fix Version/s: 2.4
  • Component/s: Junit 4.x support
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    1

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.

Issue Links

Activity

Hide
Dan Fabulich added a comment -

fixed in revision 597192

Show
Dan Fabulich added a comment - fixed in revision 597192

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: