Skip to content

Commit 9e4b391

Browse files
committed
Add testng provider for surefire explicitly
Before: When running unit tests we will use auto detected provider. Usually TestNG but there were instances where JUnit would be picked up and tests not run. After: When running unit tests maven will report that it uses configured TestNG provider.
1 parent 042bae0 commit 9e4b391

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pom.xml

+9-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<logback.version>1.2.13</logback.version>
8989
<byteman.version>3.0.8</byteman.version>
9090
<burningwave.tools.version>0.26.2</burningwave.tools.version>
91+
<surefire.version>3.0.0-M6</surefire.version>
9192
<ipprefix>127.0.1.</ipprefix>
9293
<!-- defaults below are overridden by profiles and/or submodules -->
9394
<test.groups>unit</test.groups>
@@ -732,7 +733,7 @@
732733

733734
<plugin>
734735
<artifactId>maven-surefire-plugin</artifactId>
735-
<version>3.0.0-M6</version>
736+
<version>${surefire.version}</version>
736737
<configuration>
737738
<groups>${test.groups}</groups>
738739
<useFile>false</useFile>
@@ -759,6 +760,13 @@
759760
</property>
760761
</properties>
761762
</configuration>
763+
<dependencies>
764+
<dependency>
765+
<groupId>org.apache.maven.surefire</groupId>
766+
<artifactId>surefire-testng</artifactId>
767+
<version>${surefire.version}</version>
768+
</dependency>
769+
</dependencies>
762770
</plugin>
763771

764772
<plugin>

0 commit comments

Comments
 (0)