Re: is adding test classes in mass possible?
Jason Amy <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Use ant's <junit/> target: http://ant.apache.org/manual/OptionalTasks/junit.html -Jason [email protected] wrote: > I have been give around 160 separate httpunit test files, instead of > listing them one line at a time. > > Is there a way I can grab them from the package directory and do a > mass add of the test cases? > > > > I create a main "driver" test suite as follows, and this is were I was > hoping to be able to some kind of mass add of the 160 test case files. > > > > public class TestLabSuite > > { > > public static void main( String[] args ) > > { > > junit.textui.TestRunner.run( suite() ); > > } > > > > public static TestSuite suite() > > { > > TestSuite result = new TestSuite(); > > > > // Labs > > //result.addTest(LabAdvisorKeywordSearchTest.suite() ); > > result.addTest(LabAdvisorTopicSearchTest.suite() ); > > // Added by HCL > > result.addTest(LabDatabaseSearchExtendedTest.suite() ); > > result.addTest(LabDatabaseSearchTest.suite() ); > > result.addTest(LabDatabaseSearchThirdTest.suite() ); > > > > > > return result; > > } > > } > > > > > > > > > > > > Thanks for any guidance you can provide > > Jeff > > >