You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Ralph Goers <Ra...@dslextreme.com> on 2006/09/19 16:10:29 UTC
maven test
I'm trying to run "mvn test
-Dtest=org.apache.maven.project.MavenProjectTest" from maven-project.
When I do I get No tests to run. This happens when I name any test case
in the project, not just that class. Is there something special I need
to do?
Thanks,
Ralph
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven test
Posted by Brett Porter <br...@apache.org>.
yes, also a good idea. Flagged - will JIRA unless you beat me to it :)
On 20/09/2006, at 3:19 PM, Ralph Goers wrote:
> Thanks. Given that info I was able to find the patch where that was
> implemented at http://mail-archives.apache.org/mod_mbox/maven-
> surefire-commits/200604.mbox/%
> 3C20060501024223.98895.qmail@minotaur.apache.org%3E. That will
> work for me as it matches what I always do for IntelliJ. However,
> it seems like this could simply be enhanced to check the value
> returned from the System.getProperty and if it isn't empty to use
> that instead of the hardcoded string.
>
> Ralph
>
> Brett Porter wrote:
>>
>> On 20/09/2006, at 2:56 PM, Ralph Goers wrote:
>>
>>> Thanks, that worked. Either I'm dense or some better examples
>>> would help. This syntax isn't intuitively obvious.
>>
>> I agree - it's not obvious. it's nifty to save typing, but I think
>> '.' notation should be made to work too. And the docs improved.
>>
>>>
>>> Next question. How do I do the equivalent of -
>>> Dmaven.junit.jvmargs="...." so that I can do debugging of the test?
>>
>> That'll need a feature request - I thought we had it but it seems
>> not (surprising given we have env vars). There is an undocumented
>> cheat you can use though: -Dmaven.surefire.debug. This passes
>> standard debugging args to the forked VM (port 5005).
>>
>> Cheers,
>> Brett
>>
>>>
>>> Ralph
>>>
>>> Emmanuel Venisse wrote:
>>>> Try this: mvn clean test -Dtest=MavenProjectTest
>>>>
>>>> The test param isn't a classname with package but a pattern on
>>>> files, so org/apache/maven/project/MavenProjectTest should be ok
>>>> too.
>>>>
>>>> Emmanuel
>>>>
>>>> Ralph Goers a écrit :
>>>>> I'm trying to run "mvn test -
>>>>> Dtest=org.apache.maven.project.MavenProjectTest" from maven-
>>>>> project. When I do I get No tests to run. This happens when I
>>>>> name any test case in the project, not just that class. Is
>>>>> there something special I need to do?
>>>>>
>>>>> Thanks,
>>>>> Ralph
>>>>>
>>>>> ------------------------------------------------------------------
>>>>> ---
>>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven test
Posted by Ralph Goers <Ra...@dslextreme.com>.
Thanks. Given that info I was able to find the patch where that was
implemented at
http://mail-archives.apache.org/mod_mbox/maven-surefire-commits/200604.mbox/%3C20060501024223.98895.qmail@minotaur.apache.org%3E.
That will work for me as it matches what I always do for IntelliJ.
However, it seems like this could simply be enhanced to check the value
returned from the System.getProperty and if it isn't empty to use that
instead of the hardcoded string.
Ralph
Brett Porter wrote:
>
> On 20/09/2006, at 2:56 PM, Ralph Goers wrote:
>
>> Thanks, that worked. Either I'm dense or some better examples would
>> help. This syntax isn't intuitively obvious.
>
> I agree - it's not obvious. it's nifty to save typing, but I think '.'
> notation should be made to work too. And the docs improved.
>
>>
>> Next question. How do I do the equivalent of
>> -Dmaven.junit.jvmargs="...." so that I can do debugging of the test?
>
> That'll need a feature request - I thought we had it but it seems not
> (surprising given we have env vars). There is an undocumented cheat
> you can use though: -Dmaven.surefire.debug. This passes standard
> debugging args to the forked VM (port 5005).
>
> Cheers,
> Brett
>
>>
>> Ralph
>>
>> Emmanuel Venisse wrote:
>>> Try this: mvn clean test -Dtest=MavenProjectTest
>>>
>>> The test param isn't a classname with package but a pattern on
>>> files, so org/apache/maven/project/MavenProjectTest should be ok too.
>>>
>>> Emmanuel
>>>
>>> Ralph Goers a écrit :
>>>> I'm trying to run "mvn test
>>>> -Dtest=org.apache.maven.project.MavenProjectTest" from
>>>> maven-project. When I do I get No tests to run. This happens when
>>>> I name any test case in the project, not just that class. Is there
>>>> something special I need to do?
>>>>
>>>> Thanks,
>>>> Ralph
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven test
Posted by Brett Porter <br...@apache.org>.
On 20/09/2006, at 2:56 PM, Ralph Goers wrote:
> Thanks, that worked. Either I'm dense or some better examples
> would help. This syntax isn't intuitively obvious.
I agree - it's not obvious. it's nifty to save typing, but I think
'.' notation should be made to work too. And the docs improved.
>
> Next question. How do I do the equivalent of -
> Dmaven.junit.jvmargs="...." so that I can do debugging of the test?
That'll need a feature request - I thought we had it but it seems not
(surprising given we have env vars). There is an undocumented cheat
you can use though: -Dmaven.surefire.debug. This passes standard
debugging args to the forked VM (port 5005).
Cheers,
Brett
>
> Ralph
>
> Emmanuel Venisse wrote:
>> Try this: mvn clean test -Dtest=MavenProjectTest
>>
>> The test param isn't a classname with package but a pattern on
>> files, so org/apache/maven/project/MavenProjectTest should be ok too.
>>
>> Emmanuel
>>
>> Ralph Goers a écrit :
>>> I'm trying to run "mvn test -
>>> Dtest=org.apache.maven.project.MavenProjectTest" from maven-
>>> project. When I do I get No tests to run. This happens when I
>>> name any test case in the project, not just that class. Is there
>>> something special I need to do?
>>>
>>> Thanks,
>>> Ralph
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven test
Posted by Ralph Goers <Ra...@dslextreme.com>.
Thanks, that worked. Either I'm dense or some better examples would
help. This syntax isn't intuitively obvious.
Next question. How do I do the equivalent of
-Dmaven.junit.jvmargs="...." so that I can do debugging of the test?
Ralph
Emmanuel Venisse wrote:
> Try this: mvn clean test -Dtest=MavenProjectTest
>
> The test param isn't a classname with package but a pattern on files,
> so org/apache/maven/project/MavenProjectTest should be ok too.
>
> Emmanuel
>
> Ralph Goers a écrit :
>> I'm trying to run "mvn test
>> -Dtest=org.apache.maven.project.MavenProjectTest" from
>> maven-project. When I do I get No tests to run. This happens when I
>> name any test case in the project, not just that class. Is there
>> something special I need to do?
>>
>> Thanks,
>> Ralph
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven test
Posted by Emmanuel Venisse <em...@venisse.net>.
Try this: mvn clean test -Dtest=MavenProjectTest
The test param isn't a classname with package but a pattern on files, so
org/apache/maven/project/MavenProjectTest should be ok too.
Emmanuel
Ralph Goers a écrit :
> I'm trying to run "mvn test
> -Dtest=org.apache.maven.project.MavenProjectTest" from maven-project.
> When I do I get No tests to run. This happens when I name any test case
> in the project, not just that class. Is there something special I need
> to do?
>
> Thanks,
> Ralph
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org