Hello Alain!
 
"Test" popup menu item should appear for classes having "public TestSuite suite()". Menu item "Run" starts main() method.
 
Best regards,
Anton Katilin
-------------------------------------
IntelliJ Software, "Develop with pleasure!"
http://www.intellij.com
 
----- Original Message -----
Sent: Monday, February 11, 2002 6:14 PM
Subject: [Eap-list] Q: How to use IDEA's JUnit integration for test suite?

While I use IDEA's JUnit integration for single test cases, I still use a standard TestSuite with a main() to launch suites of test cases (see below).
 
Is there a way to use IDEA's JUnit integration for such a purpose?
(And If yes, how to  :-) ?  )
 
 

// ************************************************************
/** */                                    public class AllTests
// ************************************************************
                                              extends TestSuite
// ************************************************************
{
 
// --------------------------------------------------- suite ()
    public TestSuite suite ()
// ------------------------------------------------------------
    {
        final TestSuite suite = new TestSuite();
 

        suite.addTestSuite ( Test1.class) ;
        suite.addTestSuite ( Test2.class) ;
        suite.addTestSuite ( Test3.class) ;
        suite.addTestSuite ( Test4.class) ;
 
        return suite ;
    }
 
// ---------------------------------------------------- main (.)
    public static void main ( String[] args )
// ------------------------------------------------------------
    {
        junit.textui.TestRunner.run( new AllTests().suite() );
    }
 
}

Reply via email to