Skip to content

Commit

Permalink
Add testng provider for surefire explicitly (#422)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Bouncheck authored Jan 24, 2025
1 parent 042bae0 commit c3260c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
<logback.version>1.2.13</logback.version>
<byteman.version>3.0.8</byteman.version>
<burningwave.tools.version>0.26.2</burningwave.tools.version>
<surefire.version>3.0.0-M6</surefire.version>
<ipprefix>127.0.1.</ipprefix>
<!-- defaults below are overridden by profiles and/or submodules -->
<test.groups>unit</test.groups>
Expand Down Expand Up @@ -732,7 +733,7 @@

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M6</version>
<version>${surefire.version}</version>
<configuration>
<groups>${test.groups}</groups>
<useFile>false</useFile>
Expand All @@ -759,6 +760,13 @@
</property>
</properties>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-testng</artifactId>
<version>${surefire.version}</version>
</dependency>
</dependencies>
</plugin>

<plugin>
Expand Down

0 comments on commit c3260c7

Please sign in to comment.