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/[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to