You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonnek, Ryan" <Ry...@bpc.com> on 2004/03/23 20:17:00 UTC

getting/setting properties for testcases.

How can I get/set a system property for my junit tests to pick up?  I've
tried passing it in from the command prompt, putting it in
project.properties, but the testcase always gets null for the property.

Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: getting/setting properties for testcases.

Posted by Emmanuel Venisse <em...@venisse.net>.
You must set the maven.junit.sysproperties property

http://maven.apache.org/reference/plugins/test/properties.html

Emmanuel

----- Original Message ----- 
From: "Sonnek, Ryan" <Ry...@bpc.com>
To: "'Maven Users List'" <us...@maven.apache.org>
Sent: Tuesday, March 23, 2004 8:17 PM
Subject: getting/setting properties for testcases.


> How can I get/set a system property for my junit tests to pick up?  I've
> tried passing it in from the command prompt, putting it in
> project.properties, but the testcase always gets null for the property.
> 
> Ryan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org