Skip to content

Commit c77991e

Browse files
authored
Add endpoint-tests Maven profile (#3553)
This profile is used to run only the generated endpoint tests for a module. This is helpful when doing automated model updates for a service client, which may include rules and test updates to make sure that the SDK still builds properly with such updates.
1 parent 4981864 commit c77991e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

pom.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,51 @@
793793
</build>
794794
</profile>
795795

796+
<profile>
797+
<id>endpoint-tests</id>
798+
<activation>
799+
<property>
800+
<name>doRelease</name>
801+
</property>
802+
</activation>
803+
<properties>
804+
<checkstyle.skip>true</checkstyle.skip>
805+
<spotbugs.skip>true</spotbugs.skip>
806+
<skip.unit.tests>true</skip.unit.tests>
807+
<mdep.analyze.skip>true</mdep.analyze.skip>
808+
<japicmp.skip>true</japicmp.skip>
809+
<javadoc.skip>true</javadoc.skip>
810+
</properties>
811+
<build>
812+
<plugins>
813+
<plugin>
814+
<groupId>org.apache.maven.plugins</groupId>
815+
<artifactId>maven-failsafe-plugin</artifactId>
816+
<version>${maven-failsafe-plugin.version}</version>
817+
<executions>
818+
<execution>
819+
<phase>integration-test</phase>
820+
<goals>
821+
<goal>integration-test</goal>
822+
<goal>verify</goal>
823+
</goals>
824+
<configuration>
825+
<!-- Sets the VM argument line used when endpoint tests are run. -->
826+
<argLine>${argLine}</argLine>
827+
<includes>
828+
<include>**/*ClientEndpointTests.java</include>
829+
<include>**/*EndpointProviderTests.java</include>
830+
</includes>
831+
<trimStackTrace>false</trimStackTrace>
832+
<rerunFailingTestsCount>2</rerunFailingTestsCount>
833+
</configuration>
834+
</execution>
835+
</executions>
836+
</plugin>
837+
</plugins>
838+
</build>
839+
</profile>
840+
796841
<profile>
797842
<id>stability-tests</id>
798843
<activation>

0 commit comments

Comments
 (0)