Skip to content

Commit

Permalink
Remove excludes for maven test execution.
Browse files Browse the repository at this point in the history
Maven Surefire and Failsafe plugins by default do not run inner classes, no matter if they are `@Nested` or just plain static inner classes.

This change removes this default exclude.

Closes spring-projects#1627
See https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#excludes
  • Loading branch information
schauder authored and mp911de committed Sep 28, 2023
1 parent a555119 commit 88ab6b6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes>
<exclude/>
</excludes>
</configuration>
</execution>
</executions>
Expand Down
13 changes: 13 additions & 0 deletions spring-data-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@
<systemPropertyVariables>
<spring.profiles.active>hsql</spring.profiles.active>
</systemPropertyVariables>
<excludes>
<exclude/>
</excludes>
</configuration>
</execution>
</executions>
Expand All @@ -277,6 +280,9 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes>
<exclude/>
</excludes>
<systemPropertyVariables>
<spring.profiles.active>postgres</spring.profiles.active>
</systemPropertyVariables>
Expand Down Expand Up @@ -305,6 +311,7 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes><exclude/></excludes>
<systemPropertyVariables>
<spring.profiles.active>h2</spring.profiles.active>
</systemPropertyVariables>
Expand All @@ -320,6 +327,7 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes><exclude/></excludes>
<systemPropertyVariables>
<spring.profiles.active>mysql</spring.profiles.active>
</systemPropertyVariables>
Expand All @@ -335,6 +343,7 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes><exclude/></excludes>
<systemPropertyVariables>
<spring.profiles.active>postgres</spring.profiles.active>
</systemPropertyVariables>
Expand All @@ -350,6 +359,7 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes><exclude/></excludes>
<systemPropertyVariables>
<spring.profiles.active>mariadb</spring.profiles.active>
</systemPropertyVariables>
Expand All @@ -365,6 +375,7 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes><exclude/></excludes>
<systemPropertyVariables>
<spring.profiles.active>db2</spring.profiles.active>
</systemPropertyVariables>
Expand All @@ -380,6 +391,7 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes><exclude/></excludes>
<systemPropertyVariables>
<spring.profiles.active>oracle</spring.profiles.active>
</systemPropertyVariables>
Expand All @@ -395,6 +407,7 @@
<includes>
<include>**/*IntegrationTests.java</include>
</includes>
<excludes><exclude/></excludes>
<systemPropertyVariables>
<spring.profiles.active>mssql</spring.profiles.active>
</systemPropertyVariables>
Expand Down
3 changes: 3 additions & 0 deletions spring-data-r2dbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@
<includes>
<include>**/*Tests.java</include>
</includes>
<excludes>
<exclude/>
</excludes>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 88ab6b6

Please sign in to comment.