Bash:
mvn test -Dtest=dev.aspectj.MyO*

Windows Cmd/PowerShell:
mvn test "-Dtest=dev.aspectj.MyO*"

-- 
Alexander Kriegisch
https://scrum-master.de


Gary D. Gregory schrieb am 05.02.2024 22:22 (GMT +07:00):

> Hi All:
> 
> mvn clean test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.*
> 
> gives me:
> 
> [INFO] --- surefire:3.2.5:test (default-test) @ commons-compress ---
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  40.740 s
> [INFO] Finished at: 2024-02-05T10:18:31-05:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test (default-test) on
> project commons-compress: No tests matching pattern
> "org.apache.commons.compress.harmony.unpack200.tests.*" were executed! (Set
> -Dsurefire.failIfNoSpecifiedTests=false to ignore this error.) -> [Help 1]
> 
> What am I doing wrong?
> 
> Does this page not say what I think it's saying?
> https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html
> 
> "As of Surefire Plugin 2.19.1, the syntax with fully qualified class names or
> packages can be used ..."
> 
> Reproduce me:
> 
> git clone https://gitbox.apache.org/repos/asf/commons-compress.git
> cd commons-compress
> mvn clean test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.*
> 
> TY!
> Gary
> 
> 
> 
> Gary
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to