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

JUnit4RerunFailingTestsIT does not execute with the JUnit version configured in the test

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.20
    • None
    • None

    Description

      All the test methods in JUnit4RerunFailingTestsIT set JUnit Version explicitly to 4.7 by calling setJUnitVersion( "4.7" ). This will in turn set the system property junit.version. The problem with this is, that the pom.xml in the test project (junit4-rerun-failing-tests) uses the property junitVersion instead. The version is set to 4.4 in pom.xml. Furthermore using JUnit 4.7 version in pom.xml results in test failures.

      Suggested solution: Drop the junitVersion property from pom.xml and use junit.version instead, making it possible to set the version from the test cases. Use version 4.12, since there seems to be a regression in 4.7 causing the test to fail with this version.

      Attachments

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              britter Benedikt Ritter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: