How do I pass command-line arguments to a test execution?
-DparameterName=parameterValue If the number of parameters on the command line gets unweildy, pass in the location of a property file that defines a set of parameters. Alternatively, the JUnit-addons package contains the XMLPropertyManager and PropertyManager classes that allow you to define a property file (or XML file) containing test parameters. • Why do I get a LinkageError when using XML interfaces in my test? (Submitted by: Scott Stirling) The workaround as of JUnit 3.7 is to add org.w3c.dom.* and org.xml.sax.* to your excluded.properties. It’s just a matter of time before this fix becomes incorporated into the released version of JUnit’s excluded.properties, since JAXP is a standard part of JDK 1.4. It will be just like excluding org.omg.*. By the way, if you download the JUnit source from its Sourceforge CVS, you will find that these patterns have already been added to the default excluded.properties and so has a pattern for JINI. In fact, here is the current version in CVS, wh
” I have using JVM arguments, with success. I would even suggest a properties file. It is likely that you’ll have more configuration parameters. Better to limit the number of parameters to pass to the JVM to one, so create a properties file and make its location a parameter to the JVM running your tests. J. B. Rainsberger, President, Diaspar Software Services Let’s write software that people understand. http://www.diasparsoftware.com/ telephone: +1 416 791-8603 All correspondence (c) 2002 Diaspar Software Services. If you want to use it, just ask; don’t steal. ———————— Yahoo! Groups Sponsor ———————~–> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/JjlUgA/vN2EAA/kG8FAA/5cFolB/TM ———————————————————————~-> To unsubscribe from this group, send an email to: junit-unsubscribe@xxxxxxxxxxxxxxx Your use of Yahoo! Groups is subject to http://docs.yahoo.