Maven Surefire
  1. Maven Surefire
  2. SUREFIRE-762

Add support for test compile and test runtime separation

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9
    • Fix Version/s: None
    • Component/s: Maven Surefire Plugin
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      1

      Description

      In some cases it is interesting to bind surefire to multiple execution targets but have it operate on different classpaths.

      e.g:

      • Have the same test suite run against multiple JPA providers; EclipseLink and Hibernate
      • Arquillian test suite run against Tomcat and Jetty

      In these cases you would have the TestCompile scope defined in your normal dependency chain scoped as "test", while you can tell surefire to activate another profile during test.

      TestCompile = JPA API
      TestRuntime = Hibernate | EclipseLink

      Example:
      https://gist.github.com/1155271

        Activity

        Aslak Knutsen made changes -
        Field Original Value New Value
        Attachment SUREFIRE-762 [ 62397 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Aslak Knutsen
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: