Interesting. I'm able to debug my unit tests from eclipse (dependency and enforcer etc), but sometimes I need to run mvn test to get everything setup correctly. I wonder if this fixes that.
-----Original Message----- From: Benjamin Bentmann [mailto:[EMAIL PROTECTED] Sent: Saturday, October 27, 2007 12:12 PM To: [email protected] Subject: Re: Execution of a AbstractMojoTestCase test from within Eclipse Benjamin Bentmann wrote: > > I would really appreciate some tweaks to the testing harness that allows > debugging using IDEs out-of-the-box. > Well, it seems I just should have better studied the AbstractMojoTestCase: Besides lookupMojo(), it offers configureMojo(). The later one gets the mojo from the caller and hence needs no lookup from the Plexus container. So simply coding MyMojo mojo = new MyMojo(); configureMojo(mojo, "myplugin-maven-plugin", testPom); should work fine both inside Maven builds and IDE debugging sessions without my formerly mentioned class path hacks. Benjamin Bentmann -- View this message in context: http://www.nabble.com/Execution-of-a-AbstractMojoTestCase-test-from-with in-Eclipse-tf4034442s177.html#a13444708 Sent from the Maven Developers mailing list archive at Nabble.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]
