Enterprise Bundle Repository
  1. Enterprise Bundle Repository
  2. EBR-220

please add maven-surefire-plugin configuration hint for springsource repository testng artifact

    Details

    • Type: New Artifact New Artifact
    • Status: To Do To Do
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Labels:
      None

      Description

      As you renamed libraries - in this case testng artifact - the maven-surefire-plugin needs an additional configuration line (see below). It took me some surefire code reading to figure this out. Would it be possible to add the configuration below as a hint into the testng library's repository page or some faq? So others could profit. Thanks.

      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <configuration>
      <testNGArtifactName>org.testng:com.springsource.org.testng</testNGArtifactName> <!-- this ENTRY is required because of renamed testng artifact -->
      <suiteXmlFiles>
      <suiteXmlFile>testng_Online.xml</suiteXmlFile>
      </suiteXmlFiles>
      </configuration>
      </plugin>

        Activity

        Hide
        Sam Brannen added a comment -

        FYI: the same is true for JUnit.

        You'll need to add the following to the Surefire configuration:

        <junitArtifactName>org.junit:com.springsource.org.junit</junitArtifactName>

        Show
        Sam Brannen added a comment - FYI: the same is true for JUnit. You'll need to add the following to the Surefire configuration: <junitArtifactName>org.junit:com.springsource.org.junit</junitArtifactName>
        Hide
        Willie Wheeler added a comment -

        Issue affects the Failsafe plugin for integration tests as well. The same bit of configuration Sam provides for Surefire works for Failsafe too.

        Show
        Willie Wheeler added a comment - Issue affects the Failsafe plugin for integration tests as well. The same bit of configuration Sam provides for Surefire works for Failsafe too.
        Hide
        Jason Mihalick added a comment -

        I spent an embarrassing amount of time trying to figure out why my @RunWith, @ContextConfiguration, and @Test annotations were not being picked up when running my JUnit4 tests under Surefire and Failsafe. I finally ran into a post on StackOverflow.com (http://stackoverflow.com/questions/2182376/surefire-is-not-picking-up-junit-4-tests) which had the answer, thankfully. A mention in the Spring documentation under section 9 would have been helpful. http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/testing.html#testcontext-fixture-di

        Show
        Jason Mihalick added a comment - I spent an embarrassing amount of time trying to figure out why my @RunWith, @ContextConfiguration, and @Test annotations were not being picked up when running my JUnit4 tests under Surefire and Failsafe. I finally ran into a post on StackOverflow.com ( http://stackoverflow.com/questions/2182376/surefire-is-not-picking-up-junit-4-tests ) which had the answer, thankfully. A mention in the Spring documentation under section 9 would have been helpful. http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/testing.html#testcontext-fixture-di
        Hide
        Glyn Normington (c) added a comment -

        From the updated FAQ:

        What is the current status of the repository?

        The repository is frozen but will remain accessible until at least 1 September 2014. See http://www.eclipse.org/ebr/ for information regarding the Eclipse Bundle Recipes project to which users of the SpringSource Enterprise Bundle Repository should transition.

        Show
        Glyn Normington (c) added a comment - From the updated FAQ: What is the current status of the repository? The repository is frozen but will remain accessible until at least 1 September 2014. See http://www.eclipse.org/ebr/ for information regarding the Eclipse Bundle Recipes project to which users of the SpringSource Enterprise Bundle Repository should transition.

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrei Stefan (c)
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              First Response Date: