Skip to content

Commit c6db2d7

Browse files
author
Changjian Wang
committed
Fix surefire include pattern to only match generated/Sample*.java
Exclude src/samples/java/.../samples/Sample*.java from test execution as those are standalone examples with main() method, not test classes.
1 parent 451a119 commit c6db2d7

File tree

1 file changed

+3
-2
lines changed
  • sdk/contentunderstanding/azure-ai-contentunderstanding

1 file changed

+3
-2
lines changed

sdk/contentunderstanding/azure-ai-contentunderstanding/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@
8585
<!-- Include standard test naming conventions -->
8686
<include>**/*Test.java</include>
8787
<include>**/*Tests.java</include>
88-
<!-- Include Sample files as tests (they extend ContentUnderstandingClientTestBase) -->
89-
<include>**/Sample*.java</include>
88+
<!-- Include Sample files from generated directory only (they extend ContentUnderstandingClientTestBase) -->
89+
<!-- Note: Exclude src/samples/java/*/samples/Sample*.java as those are standalone examples with main() -->
90+
<include>**/generated/Sample*.java</include>
9091
</includes>
9192
</configuration>
9293
</plugin>

0 commit comments

Comments
 (0)