|
|
Re: ext subdirectory
|
Posted: Feb 1, 2003 9:17 PM
|
|
> For me the most irritating thing about JUnit is that you > can't stick the jar file in the jre/lib/ext subdirectory. > It just doesn't work. SuiteRunner appears to have the same > limitation. Does this annoy anyone else? > Well you can stick suiterunner.jar in the extensions directory, but the extensions directory is intended to house libraries. suiterunner.jar is a library, but it is also an application. Since you have to mention the JAR file to start your application, you don't need to put the JAR file in the extensions directory because the JVM will by definition already be able to find the classes inside the executable JAR file.
> Why does this bother me? Because I can't create any simple > examples. If I try to demonstrate it to a coworker, I > spend 3 minutes stumbling with the classpath--by then I've > lost their interest. > I think I have a better solution for you. If the first argument to SuiteRunner is not -s, -p, or -r, it interprets the first argument as a recipe file name. If it opens the recipe file successfully, it runs the test specified in the recipe.
What you probably want to do is associate the extension ".srj" with the command "java -jar /wherever/you/installed/suiterunner-[release].jar". Replace [release] with whatever release you have, such as suiterunner-1.0beta2.jar. Once you've done that, you can just double click on a recipe file and it will run the test. That's a convenient way to show demos, but it is also a convenient way to run any of a number of tests that you run often. Just create recipe files for each of the tests, and when you want to run one, just double click on the desired recipe file's icon.
|
|