The current version is at http://code.google.com/p/jcrasher/
All software is provided "as is".jcrasher-planner-0.2.7.jar
--sources and executables to run JCrasher as a Java stand-alone application.jcrasher-runtime-0.2.7.jar
--sources and executables needed when executing the JCrasher-generated test-cases,
that is, at JUnit runtime to classify exceptions as robustness bugs.junit-reinit-0.2.7.jar
--sources and executables of our fast
but-maybe-incorrect modification of JUnit 3.8.1.
Our modification reduces side-effects between JUnit test-cases by executing a copy of each testee class's static initializer
before each test case. It also groups exceptions together that have the same stack-trace.junit-reinit-0.2.8.jar
--sources and executables as above,
but supports turning off the reinitialization by passing -reinit
as the first parameter to
edu.gatech.cc.jcrasher.junit.textui.RaGTestRunner
.bcel-5.1.jar
--executables of the BCEL 5.1 bytecode engineering library,
which junit-reinit-0.2.7.jar uses to modify testee classes at load-time.jakarta-regexp-1.3.jar
--executables BCEL 5.1 requires.junit-multicl-0.1.9.jar
--sources and executables of our slow-but-correct modificaton of JUnit 3.8.1.
It provides correct class re-initialization ordering by using multiple class-loaders.jcrasher-planner
, jcrasher-runtime
,
junit-reinit
, bcel
, and jakarta-regexp
.javac P1.java
java edu.gatech.cc.jcrasher.JCrasher P1
P1Test.java
and at least P1Test1.java
.
If JCrasher has found the class under test in a jar then the test classes are put
in a new package-style directory relative to your current working directory.javac P1Test.java
java edu.gatech.cc.jcrasher.junit.textui.RaGTestRunner P1Test
c:\Program Files\Eclipse
jcrasher_0.1.9_eclipse.zip
.cc.jcrasher_X.Y.Z
) to
c:\Program Files\Eclipse\plugins
c:\Program Files\Eclipse\plugins\cc.jcrasher_X.Y.Z\jcrasher.jar
c:\Program Files\Eclipse\plugins\cc.jcrasher_X.Y.Z\plugin.xml
Properties
, Java Build Path
,
Libraries
, Add External Jars...
c:\Program Files\Eclipse\plugins\org.junit_X.Y.Z\junit.jar
c:\Program Files\Eclipse\plugins\cc.jcrasher_X.Y.Z\jcrasher.jar
JCrasher: Generate JUnit TestCase
.
Figure 1. Invoking JCrasher conveniently as an Eclipse plug-in.
Properties
, Java Build Path
, Source
,
Add existing folder
, probably bin
if you have not modified the default output location.
If JCrasher has found the class under test in a jar then the test classes are put
in a new package-style directory relative to your current working directory.junit-reinit
jar file and save it to c:\Program Files
, for example.Properties
, Java Build Path
, Libraries
,
Add External Jars...
junit-reinit
jar file and start its
edu.gatech.cc.jcrasher.junit.textui.RaGTestRunner
.c:\lib\cnc-0.8.19.jar
C:\cs\jcrasher\subjects\p1-s1\
crash.xml
is an Ant build script that defines the configuration of the project and the JCrasher componentscrashees.txt
defines the classes and packages under testsrc\
contains the project's source code
P1s1.java
is the tested class
jcrasher-bin\
will be created by by the crash.xml
script and will contain compiled project classesjcrasher-test-src\
will be created by by the crash.xml
script and contain JCrasher-generated test sourcesjcrasher-test-bin\
will be created by by the crash.xml
script and contain JCrasher-generated test class binariesp1-s1-jcrasher-0.8.19-2005-11-14-2102.zip
will contain JCrasher's results in an archive named
directory-jcrasher-
version-
date-
time.zip
changes.txt
for details about changes and improvements.