Paul Kinnucan writes: > Ole Arndt writes: > > Hi Paul, Len, > > > > Paul Kinnucan <[EMAIL PROTECTED]> writes: > > > > > Len Trigg writes: > > > > JDE. I've had some functions for ages that I use for running test > > > > classes ... > > > > > I am planning to provide a command like this. However, I want to make > > > the JDEE's support of unit testing more flexible. > > > > Here is the plugin I use for switching forth and back between Class > > source and test file and running tests. It uses some customisation > > variables, perhaps you can use it as a base. The mapping from class > > source to test source can surely be improved. > > > > It is based on some code from the list, I don't remember whose work it > > was, shame on me. > > I committed an updated jde-junit.el file last night. It adds a > customization variable > > jde-junit-tester-name-tag >
Hmm, on second thougth, I might rename this to jde-junit-test-case-name-tag Paul > variable that allows you to specify a tag for generating JUnit class > names from testee class names. You can specify whether to prefix or > append the tag to the testee class name. The default tag is the prefix > T, i.e., it generates TFoo as the name for a JUnit class that tests > Foo. I added functions that use this variable to determine a test case > name from a testee class and vice-versa. I plan to use these functions > to provide a command that switches you from a testee class to the test > case that tests it and vice versa. > > This command will also use a customization variable that I plan to > implement named, > > jde-junit-test-case-directory > > that will allow you to specify where test cases are located for > a project. My thought is to allow you to specify one of two locations: > > - same directory as the classes to be tested > - a specified directory beneath the classes to be tested, > e.g., unittest. > > Please let me know if you know of other places that people > commonly store test cases. > > > I plan to add a customization variable > > jde-junit-generic-test-case-class > > that allows you to specify the parent class for all test case > classes. This allows you to create your own subclass of JUnit's > TestCase and use this as the parent for all test cases. The > default value will be TestCase. The JDEE test case class template > will use this variable to generate skeleton test cases. > > > Paul > > > > > See attachment. This is only the lisp file from the plugin. The only > > other file in the plugin is junit.jar in java/lib/junit.jar. > > > > -- > > Ole Arndt http://www.sugarshark.com > > >