Skip to content

Commit a453b9f

Browse files
authored
fix(java): Enable unit tests in generated libraries for native image testing (#394)
* Include unit tests for generated libraries
1 parent 15a80ed commit a453b9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,8 @@
807807
<excludes combine.self="override" />
808808
<includes>
809809
<include>**/IT*.java</include>
810+
<!-- Enable unit tests in generated libraries for native image testing. -->
811+
<include>**/*ClientTest.java</include>
810812
</includes>
811813
</configuration>
812814
</plugin>
@@ -829,6 +831,7 @@
829831
<buildArgs>
830832
<buildArg>--no-fallback</buildArg>
831833
<buildArg>--no-server</buildArg>
834+
<buildArg>--features=com.google.cloud.nativeimage.features.ProtobufMessageFeature</buildArg>
832835
</buildArgs>
833836
</configuration>
834837
</plugin>

0 commit comments

Comments
 (0)