Cricket Cage automatically creates JUnit TestCases for repeatable bugs and test scenarios. Extend the GeneratesCode aspect, include Cricket Cage's AspectJ code in your compilation to install the code generator, then run the program to generate the TestCase. Finally, add the test case to your build.xml to repeat the test on every build.
Cricket Cage uses AspectJ to insert code into your classes to generate the code for the test case.
The aspects defined capture every call executed from outside a set of classes to every call on classes within that set. Cricket Cage makes creating the test state gets very easy.
Running the modified code generates a JUnit TestCase that sets up the bug. The test case itself should run fine, but you will want to add assertTrue() calls to it to see what's what. Cricket Cage can add the generated TestCase to an existing suite.
A far future release of Cricket Cage will be enhanced to handle multiple threads.
To learn how Cricket Cage works, try reading the howto, or dive boldly into the ajdoc API. If that really inspires you, have a look at the todo list and lend a hand on Sourceforge.
Cricket Cage carries a BSD license. If you use it in a project that sees the light of day, fulfill the license by linking from your credits page back to this page. Let me know and I'll add a link to your project here.
David Walend firstname.lastname@example.org
Home How To To Do Source Forge License David Walend
Copyright (c) 2002 David Walend