Skip to content

Commit de180f8

Browse files
authored
Merge pull request #48621 from geoand/ci-openapi
Use separate surefire execution DevMode tests in OpenAPI extension
2 parents 1fd4a78 + b513222 commit de180f8

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

extensions/smallrye-openapi/deployment/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,35 @@
132132
</execution>
133133
</executions>
134134
</plugin>
135+
<plugin>
136+
<artifactId>maven-surefire-plugin</artifactId>
137+
<configuration>
138+
<skip>false</skip>
139+
</configuration>
140+
<executions>
141+
<!--
142+
The dev mode tests are run as a different execution to ensure that they don't mess with the standard tests.
143+
By adding this configuration we ensure that the maven surefire plugin will execute twice, one for the regular **/*Test.java
144+
tests (using the 'default-test' execution), and one for the prod mode tests (this 'dev-mode' execution)
145+
-->
146+
<execution>
147+
<id>dev-mode</id>
148+
<phase>test</phase>
149+
<goals>
150+
<goal>test</goal>
151+
</goals>
152+
<configuration>
153+
<includes>**/*DMT.java</includes>
154+
</configuration>
155+
</execution>
156+
</executions>
157+
</plugin>
158+
<plugin>
159+
<artifactId>maven-failsafe-plugin</artifactId>
160+
<configuration>
161+
<skip>false</skip>
162+
</configuration>
163+
</plugin>
135164
</plugins>
136165
</build>
137166

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import io.restassured.RestAssured;
1111
import io.restassured.http.ContentType;
1212

13-
public class DisplayOpenAPiEndpointInNotFoundExceptionPageTest {
13+
public class DisplayOpenAPiEndpointInNotFoundExceptionPageDMT {
1414
private static final String OPEN_API_PATH = "/openapi-path";
1515
private static final String SWAGGER_UI_PATH = "/swagger-path";
1616

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import io.quarkus.test.QuarkusDevModeTest;
1010
import io.restassured.RestAssured;
1111

12-
public class OpenApiHotReloadTest {
12+
public class OpenApiHotReloadDMT {
1313

1414
@RegisterExtension
1515
final static QuarkusDevModeTest TEST = new QuarkusDevModeTest()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import io.quarkus.test.QuarkusDevModeTest;
1212
import io.restassured.RestAssured;
1313

14-
public class AutoSecurityDisabledTestCase {
14+
public class AutoSecurityDisabledTestDMT {
1515

1616
@RegisterExtension
1717
final static QuarkusDevModeTest TEST = new QuarkusDevModeTest()

0 commit comments

Comments
 (0)