|
101 | 101 | <plugin> |
102 | 102 | <artifactId>maven-failsafe-plugin</artifactId> |
103 | 103 | <version>${failsafe.version}</version> |
| 104 | + <!-- config and dependencies below needed to make running both Spock and TestNG tests --> |
104 | 105 | <configuration> |
105 | 106 | <threadCount>1</threadCount> |
106 | | - <!-- Re-enable IT tests with improved Jetty dependency management --> |
107 | | - <includes> |
108 | | - <include>**/*IT.java</include> |
109 | | - </includes> |
110 | | - <!-- Exclude problematic tests if any --> |
111 | | - <excludes> |
112 | | - <!-- Add specific problematic tests here if needed --> |
113 | | - <!-- <exclude>**/ProblematicIT.java</exclude> --> |
114 | | - </excludes> |
115 | | - <!-- Enhanced system properties for Jetty compatibility --> |
116 | | - <systemPropertyVariables> |
117 | | - <jetty.version.forced>true</jetty.version.forced> |
118 | | - <org.eclipse.jetty.util.log.class>org.eclipse.jetty.util.log.StdErrLog</org.eclipse.jetty.util.log.class> |
119 | | - <org.eclipse.jetty.LEVEL>WARN</org.eclipse.jetty.LEVEL> |
120 | | - </systemPropertyVariables> |
121 | 107 | </configuration> |
122 | 108 | <dependencies> |
123 | | - <!-- Use TestNG for IT tests instead of JUnit --> |
| 109 | + <dependency> |
| 110 | + <groupId>org.apache.maven.surefire</groupId> |
| 111 | + <artifactId>surefire-junit47</artifactId> |
| 112 | + <version>${surefire.version}</version> |
| 113 | + </dependency> |
124 | 114 | <dependency> |
125 | 115 | <groupId>org.apache.maven.surefire</groupId> |
126 | 116 | <artifactId>surefire-testng</artifactId> |
127 | | - <version>${failsafe.version}</version> |
| 117 | + <version>${surefire.version}</version> |
128 | 118 | </dependency> |
129 | 119 | </dependencies> |
130 | 120 | </plugin> |
@@ -205,21 +195,33 @@ LICENSE.txt file in the root directory of this source tree.</inlineHeader> |
205 | 195 | </configuration> |
206 | 196 | </plugin> |
207 | 197 | <plugin> |
208 | | - <!-- needed to make running both Spock and JUnit5 tests --> |
| 198 | + <!-- needed to make running both Spock and TestNG tests --> |
209 | 199 | <groupId>org.apache.maven.plugins</groupId> |
210 | 200 | <artifactId>maven-surefire-plugin</artifactId> |
211 | 201 | <version>${surefire.version}</version> |
212 | 202 | <configuration> |
| 203 | + <properties> |
| 204 | + <property> |
| 205 | + <name>junit</name> |
| 206 | + <value>false</value> |
| 207 | + </property> |
| 208 | + </properties> |
213 | 209 | <threadCount>1</threadCount> |
214 | | - <includes> |
215 | | - <include>**/*Test.java</include> |
216 | | - <include>**/*Spec.groovy</include> |
217 | | - </includes> |
218 | | - <excludes> |
219 | | - <exclude>**/RetryableRestTemplateTest.java</exclude> |
220 | | - </excludes> |
221 | | - <argLine>--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED</argLine> |
| 210 | + <!-- Java 17 module access for Shazamcrest library --> |
| 211 | + <argLine>--add-opens java.base/java.time=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED</argLine> |
222 | 212 | </configuration> |
| 213 | + <dependencies> |
| 214 | + <dependency> |
| 215 | + <groupId>org.apache.maven.surefire</groupId> |
| 216 | + <artifactId>surefire-junit47</artifactId> |
| 217 | + <version>${surefire.version}</version> |
| 218 | + </dependency> |
| 219 | + <dependency> |
| 220 | + <groupId>org.apache.maven.surefire</groupId> |
| 221 | + <artifactId>surefire-testng</artifactId> |
| 222 | + <version>${surefire.version}</version> |
| 223 | + </dependency> |
| 224 | + </dependencies> |
223 | 225 | </plugin> |
224 | 226 | </plugins> |
225 | 227 | </build> |
|
0 commit comments