smart-testing icon indicating copy to clipboard operation
smart-testing copied to clipboard

Support option of delegating to multiple surefire providers

Open MatousJobanek opened this issue 8 years ago • 3 comments

Issue Overview

In the issue #278 , there was introduced an option of delegating test execution to custom provider specified in Surefire's dependencies. But this works only for one provider. If there are more providers specified, ST picks only the first one and delegates the execution to it. The task for this issue is to delegate the classpath scan and the test execution to multiple surefire providers (if they are present in the list of Surefire's dependencies) A concrete example is:

<build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.20.1</version>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven.surefire</groupId>
            <artifactId>surefire-testng</artifactId>
            <version>2.20.1</version>
          </dependency>
          <dependency>
            <groupId>org.apache.maven.surefire</groupId>
            <artifactId>surefire-junit47</artifactId>
            <version>2.20.1</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

The test execution should be delegated to both providers, not only the first one.

MatousJobanek avatar Dec 08 '17 22:12 MatousJobanek

Can this be closed @MatousJobanek?

bartoszmajsak avatar Dec 12 '17 10:12 bartoszmajsak

no, this is another issue - different use case. Currently, it supports only one custom provider. This task is to support multiple providers.

MatousJobanek avatar Dec 13 '17 14:12 MatousJobanek

Ok, reference in the #281 got me confused

bartoszmajsak avatar Dec 13 '17 14:12 bartoszmajsak