There appears to be a different syntax for wild-card matching. On macOS, the following works: mvn test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.ArchiveTest but mvn test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.* fails with No tests matching pattern "org.apache.commons.compress.harmony.unpack200.tests.*" were executed!
Under Windows, mvn test -Dtest=org.apache.commons.compress.harmony.unpack200.tests.ArchiveTest fails with Unknown lifecycle phase ".apache.commons.compress.harmony.pack2000.tests.ArchiveTest". but the following works: mvn test -Dtest="org.apache.commons.compress.harmony.unpack200.tests.ArchiveTest" I think this shows that '.' *is* treated as a separator on Windows. The wildcard version fails on Windows as for macOS. The different syntax for wild-cards affects both Windows and macOS On Mon, 5 Feb 2024 at 16:43, Gary D. Gregory <ggreg...@apache.org> wrote: > > Yep, slashes work. The double quoting gives a syntax error. > > TY. > > Gary > > On 2024/02/05 15:53:41 Stanimir Stamenkov wrote: > > Mon, 5 Feb 2024, /sebb/: > > > > > That looks like a Windows quoting issue; Windows does not like '.' in > > > parameter values > > > > > > Try > > > > > > mvn clean test > > > -D"test=org.apache.commons.compress.harmony.unpack200.tests.*" > > > > Dot (.) doesn't appear a standard delimiter on Windows: > > > > * https://ss64.com/nt/syntax-esc.html#delimiters > > > > and the the suggested quoting doesn't work for me. > > > > However I've tried alternative syntax I've noticed in the referenced > > documentation: > > > > pkg/**/Ci*leTest.java > > > > and the following worked for me: > > > > > mvn clean test > > -Dtest=org/apache/commons/compress/harmony/unpack200/tests/* > > [...] > > [WARNING] Tests run: 168, Failures: 0, Errors: 0, Skipped: 10 > > > > Maybe it is just the plugin documentation wrong? > > > > > > >> On 2024/02/05 15:22:09 "Gary D. Gregory" wrote: > > >> > > >>> [...] > > >>> [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.* > > > > -- > > > > --------------------------------------------------------------------- > > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org