junitCreator -junit pathToJUnitJar [-eclipse projectName] [-out dir] [-overwrite] [-ignore] className
-junit | Specify the path to your junit.jar (required) |
-module | Specify name of the application module to use (required) |
-eclipse | Creates a debug launch configuration for the named eclipse project |
-out | The directory to write output files into (defaults to current) |
-overwrite | Overwrite any existing files |
-ignore | Ignore any existing files; do not overwrite |
className | The fully-qualified name of the test class to create |
~/Foo> junitCreator -junit /opt/eclipse/plugins/org.junit_3.8.1/junit.jar
-module com.example.foo.Foo
-eclipse Foo com.example.foo.client.FooTest
Created directory test/com/example/foo/test
Created file test/com/example/foo/client/FooTest.java
Created file FooTest-hosted.launch
Created file FooTest-web.launch
Created file FooTest-hosted
Created file FooTest-web
Running FooTest-hosted tests as Java bytecode in a JVM.
FooTest-web tests as compiled JavaScript. The launch
configurations do the same thing in Eclipse.