[prev in list] [next in list] [prev in thread] [next in thread]
List: maven-user
Subject: Re: Can't test a package with Surefire?
From: "Alexander Kriegisch" <alexander () kriegisch ! name>
Date: 2024-02-06 3:24:37
Message-ID: 20240206032437.C59B278C056D () dd19710 ! kasserver ! com
[Download RAW message or body]
FYI, I have just created https://issues.apache.org/jira/browse/SUREFIRE-2234 with a suggested fix.
--
Alexander Kriegisch
https://scrum-master.de
Alexander Kriegisch schrieb am 06.02.2024 08:58 (GMT +07:00):
> Sorry, hit the send button too quickly.
>
> The fact that e.g. on Bash
>
> mvn test -Dtest=dev.aspectj.*
>
> does not find any tests, but
>
> mvn test -Dtest=dev/aspectj/*
>
> does, is IMO simply a bug that ought to be fixed.
>
>
> Alexander Kriegisch schrieb am 06.02.2024 08:54 (GMT +07:00):
>
>> Bash:
>> mvn test -Dtest=dev.aspectj.MyO*
>>
>> Windows Cmd/PowerShell:
>> mvn test "-Dtest=dev.aspectj.MyO*"
>>
>>
>> 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.*
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic