passing system properties to forked test

View: New views
2 Messages — Rating Filter:   Alert me  

passing system properties to forked test

by dfabulich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


SUREFIRE-121 requests that system properties set on the Maven process get
passed along to the child process.

http://jira.codehaus.org/browse/SUREFIRE-121

e.g. he wants to do "mvn test -Dselenium.user=test32" and have the test
see the property he specified.

I didn't see anything inherently wrong with that, (it seems like a valid
use case) but it does seem a bit risky.  I checked in a fix in revision
Please pipe up if you know of any reason why I shouldn't have done this.

-Dan

Re: passing system properties to forked test

by dfabulich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Heh, that'd be revision 598217.

Dan Fabulich wrote:

>
> SUREFIRE-121 requests that system properties set on the Maven process get
> passed along to the child process.
>
> http://jira.codehaus.org/browse/SUREFIRE-121
>
> e.g. he wants to do "mvn test -Dselenium.user=test32" and have the test see
> the property he specified.
>
> I didn't see anything inherently wrong with that, (it seems like a valid use
> case) but it does seem a bit risky.  I checked in a fix in revision Please
> pipe up if you know of any reason why I shouldn't have done this.
>
> -Dan
>