I too think that would be useful to have 'by default' in IDEA (as well as
being able to specify your own runners for JUnit).
You can do this with IDEA right now by writing your own TestRunner. Simply
derive from junit.textui.TestRunner and have IDEA pass in the current filea
current line number. Use those two pieces of information to get the class
name and method, create a Test object, and call TestRunner.doRun. Works like
a charm.
-- Rick
On Friday 01 March 2002 12:28 pm, you wrote:
> In a TestCase class with more than one test, such as the one
> shown below, it would be nice if the integrated JUnit interface
> would allow me to run just one of the two tests.
>
> I realize that you can do this in the GUI test runner, but
> the GUI test runner class loaders STILL blow up when I
> try to run tests that use XML.
>
> =========================================
> package foo.bar;
>
> import junit.framework.TestCase;
>
> public class FooTest
> extends TestCase
> {
> public FooTest (String testName)
> {
> super (testName);
> }
>
> public void testOne ()
> {
> // test code goes here
> }
>
> public void testTwo ()
> {
> // test code goes here
> }
> }
> =========================================
>
>
>
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features