Selecting multiple packages classes - java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Selecting multiple packages classes - java

Muaaz
Hi ,

We being using maven  based framework currently we are facing a problem that in java (JUNIT) it is difficult to select multiple packages to execute which includes number of test cases with in it .


eg : assume i have package 01 includes testcase1 and 2 , also i have package 02 includes testcase 3 and testcase4

if i use following code  

suite.addTestSuite(Class.forName("com.ebuilder.asa.package01.");  
suite.addTestSuite(Class.forName("com.ebuilder.asa.package02.");  


it will only run first TestSuite and wont execute the second test suite ..is there any solution to SELECT multiple TestSuite to execute at once..

Plz help me , i googled nothing to be found