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

maven-failsafe-plugin does not use JUnit adapter for JUnit4 annotations and TestNG providers do not have maven-surefire-plugin config in POM

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.21.0
    • Component/s: None
    • Labels:
      None

      Description

      The unit tests of maven-failsafe-plugin pass successfully in IDEA if you run them locally.
      The Maven build does not have a chance. Therefore use JUnit3 adapter to call them on JUnit4 library. The tests use annotations and cannot be run in JUnit3 runner. Therefore we use adapter elsewhere called JUnit4SuiteTest.java.
      The projects surefire-testng and surefire-testng-utils do not have surefire configuration in POM like others.
      The JUnit47SuiteTest.java has a duplicate test class.

        Attachments

          Activity

            People

            • Assignee:
              tibor17 Tibor Digana
              Reporter:
              tibor17 Tibor Digana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: