This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/master by this push:
new 4f0cc2883 document that include and exclude patterns match class files
(#3609)
4f0cc2883 is described below
commit 4f0cc288390db5750303a1a5b17be79c2145855e
Author: Dhananjay Aggarwal <[email protected]>
AuthorDate: Sun Nov 22 15:12:16 2026 +0530
document that include and exclude patterns match class files (#3609)
Signed-off-by: dhananjay6561 <[email protected]>
---
.../src/site/markdown/examples/inclusion-exclusion.md.vm | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/maven-surefire-plugin/src/site/markdown/examples/inclusion-exclusion.md.vm
b/maven-surefire-plugin/src/site/markdown/examples/inclusion-exclusion.md.vm
index cb7e2fd42..f28626a25 100644
--- a/maven-surefire-plugin/src/site/markdown/examples/inclusion-exclusion.md.vm
+++ b/maven-surefire-plugin/src/site/markdown/examples/inclusion-exclusion.md.vm
@@ -97,6 +97,8 @@ There are certain times when some tests are causing the build
to fail. Excluding
</project>
```
+Note that inclusion and exclusion patterns are matched against the compiled
test classes (`.class` files), not against the source files. A trailing `.java`
is accepted and treated as `.class`, which is why the examples above work.
Other source file extensions such as `.groovy` or `.kt` are not translated, so
a pattern like `**/MyGroovyTest.groovy` matches nothing. Leave the extension
off (`**/MyGroovyTest`) or use `.class` (`**/MyGroovyTest.class`) instead.
+
Regular Expression Support
--------------------------