junitCreator

junitCreator -junit pathToJUnitJar [-eclipse projectName] [-out dir] [-overwrite] [-ignore] className

Generates a JUnit test and scripts for testing in both hosted mode and web mode.

-junitSpecify the path to your junit.jar (required)
-eclipseCreates a debug launch config for the named eclipse project
-outThe directory to write output files into (defaults to current)
-overwriteOverwrite any existing files
-ignoreIgnore any existing files; do not overwrite
classNameThe fully-qualified name of the test class to create

Example

 ~/Foo> junitCreator -junit /opt/eclipse/plugins/org.junit_3.8.1/junit.jar -eclipse Foo com.example.foo.test.FooTest
 Created directory src
 Created directory src/com/example/foo
 Created directory src/com/example/foo/test
 Created file src/com/example/foo/FooTest.gwt.xml
 Created file src/com/example/foo/test/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.