apache / apache/maven-surefire
[SUREFIRE-1547] There should be no extensions on excludes, while doc examples show extensions.
- Dominant language
- Java
- Stars
- 461
- Forks
- 588
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 19
Description
**[Tommy Svensson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tombensve)** opened **[SUREFIRE-1547](https://issues.apache.org/jira/browse/SUREFIRE-1547?redirect=false)** and commented
I ran into a problem, and found the solution:
My pom started out like this:
```java
org.apache.maven.plugins
maven-surefire-plugin
2.22.0
**/RunBackendTest.groovy
```
This didn’t work in any way!
I copied the pom plugin configuration from this page: https://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
But I finally solved the problem. My pom now looks like this:
```java
org.apache.maven.plugins
maven-surefire-plugin
2.22.0
**/RunBackendTest
```
See the difference ? No extension on test file! But the above referenced maven documentation examples do include the extensions, which clearly does not work.
---
No further details from [SUREFIRE-1547](https://issues.apache.org/jira/browse/SUREFIRE-1547?redirect=false)
Contributor guide
Research direction
Review the inclusion/exclusion examples at the linked Maven Surefire documentation page and compare the documented exclude pattern with the Java configuration shown in the issue. Confirm the expected extension behavior, then update the example or its explanation so the documentation matches working configuration; done means the page no longer recommends a non-working pattern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- documentation, testing
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100