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.
-junit | Specify the path to your junit.jar (required) |
-eclipse | Creates a debug launch config 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 -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-webRunning
FooTest-hosted
tests as Java bytecode in a JVM.
FooTest-web
tests as compiled JavaScript. The launch
configurations do the same thing in Eclipse.