Can we somehow add a mode to the embedder, or a wrapper around it, so that forking an m2 instance instead is just configuration?
That way the default can be fast via the embedder, but the others possible for release testing. - Brett Jason van Zyl wrote: > Vincent Massol wrote: >> >>> -----Original Message----- >>> From: Jason van Zyl [mailto:[EMAIL PROTECTED] >>> Sent: vendredi 31 mars 2006 04:29 >>> To: Maven Developers List >>> Subject: Using the embedder for ITs >>> >>> Hi, >>> >>> Just wanted to float the idea of using the embedder for the ITs. It's >>> been discussed before but now I think it's getting close to possible >>> with the work on the embedder-refactor branch. The CLI uses the embedder >>> on the branch and everything works. >>> >>> The subtlety is that it will not be the command line anymore in the >>> strict sense even though it's the same code now. The one benefit is that >>> trying to run the ITs through the embedder I believe will stimulate some >>> cleanup in the core because I know for sure they would not all pass >>> right now because of some thread safety issues and use of System >>> properties. The other benefit is that the ITs would probably run in 5 >>> seconds which would be nice. >>> >>> Any thoughts? >> >> Jason, why would Its run faster with the embedded than they would do >> through >> maven proper? > > The JVM would be brought up once and the each IT would use the same > instance of the embedder. > >> What is your suggestion here? Is it to modify the it plugin so that is >> uses >> the embedded. If so I think it makes complete sense and there's even a >> comment already in the it plugin (AFAIR) saying that the code should be >> replaced with the embedder... > > I'm thinking more the verifier code here. So instead of forking and > invoking Maven each time for each IT an execution request would be made > to the embedder. That should speed things up significantly. Just to be > clear this would be for all the itXXX tests we have in maven-core-it. > > But the IT plugin would be another candidate for embedder use. So then > the CLI, Ant Tasks, ITs and IDEs would use the same code. > >> Thanks >> -Vincent >> >> >> >> >> >> >> ___________________________________________________________________________ >> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les >> tarifs exceptionnels pour appeler la France et l'international. >> Téléchargez sur http://fr.messenger.yahoo.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]