> -----Original Message----- > From: Ruel Loehr [mailto:[EMAIL PROTECTED] > Sent: jeudi 31 août 2006 16:10 > To: Maven Users List > Subject: RE: Integration Testing > > I appreciate the feedback. I think these are all valid workarounds, but > have my concerns about scalability and ease of use for users. > > BTW, I'm not ranting here, just trying to show that use cases exist for > which the functionality of M2 might need to improved upon. > > Our actual testsuite for JBossAS starts and stops different server > configurations 15-20 times as well as starting up clusters of servers. > From what I can see, to do this the maven way, I would need 15-20 > integration projects which would be executed by hand or cruise control or > 1 integration project with 15-20 profiles executed in the same fashion as > above. Neither one of those solutions provides the same level of > functionality as what I can achieve using ant. > > > Another key point I have to deal with is simply the migration and the user > experience. > > Currently they can go into our testsuite and issue: ant tests > > At which time our entire testsuite will run, performing integration > testing for all configurations. I can't take away that functionality. > > SO....to achive this, it sounds like I need to write a plugin which allows > many executions, where > > For each execution > a) configure server and start it > b) deploy app > c) run unit tests > d) undeploy app > e) stop server
Or simply use cargo in your test as shown here: http://cargo.codehaus.org/Functional+testing You can then pass configuration parameters to your tests by using the <systemProperties> element of the surefire plugin. Then wrap this with a Test Suite to run as many configs as you want. [snip] -Vincent p4.vert.ukl.yahoo.com uncompressed Thu Aug 31 13:27:00 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]