Anton Katilin wrote: > > "Test" popup menu item should appear for classes having "public > TestSuite suite()". Menu item "Run" starts main() method. >
As I mentioned before, it would be better (though maybe harder) to show this option for classes that extend TestCase. suite() is optional (though highly recommended). > > > Best regards, > Anton Katilin > ------------------------------------- > IntelliJ Software, "Develop with pleasure!" > http://www.intellij.com > > > > ----- Original Message ----- > > *From:* Alain Ravet <mailto:[EMAIL PROTECTED]> > > *To:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > *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() ); > } > > > > } > -- Erb ============================================================== "The only time I like in the morning is afternoon." - Russell D. Cooper "If you do everything, then you're all done." - Melissa F. Cooper "Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall ============================================================== _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
