Harald, Thank you very much for providing the details. I actually tried this before posting my query, but I found that the maven context was missing during test execution. e.g., the properties set in my maven-surefire-plugin's configuration now have to be duplicated in Eclipse "Run Configuration." Similarly I don't know what will happen if my test uses mavenConfiguration() to configure test container. Hence my question about some kind of IDE plugin that ensures fidelity between command line invocation and inside-IDE invocation of tests.
Thanks, Sahoo On Thu, Aug 18, 2011 at 11:11 PM, Harald Wellmann <[email protected]>wrote: > I don't think you actually need an IDE plugin for Pax Exam, at least not > for Eclipse. > > This is what works for me: > > * Eclipse 3.6.2 + m2eclipse 0.12.1 > * or Eclipse 3.7.0 + m2e 1.0 > * import your Maven projects into your Eclipse workspace > * add Pax Exam Driver and dependencies to your POMs > * select a Pax Exam test source file in the Project Explorer and fire "Run > as JUnit Test..." from the context menu > > This is one of the coolest features of JUnit: By simply adding a @RunWith > annotation for a customized runner, you can change its behaviour completely > without affecting the JUnit API or any existing integrations like Maven > Surefire or Eclipse JUnit support, and this should also work in NetBeans and > IntelliJ, if they did their JUnit plugins properly ;-) > > Is there anything else you were thinking of that would not be covered by > this approach? > > For Eclipse PDE users who don't work with Maven, it might be convenient to > offer a p2 repository (aka Eclipse Update Site) with all Pax bundles, but > that's a different story. > > Best regards, > Harald > > > Am 18.08.2011 18:57, schrieb Sanjeeb Sahoo: > > Currently I execute my pax-exam based JUnit tests using maven cli and >> that's great for automation. I want to know if there is a better >> integration with IDE such as Eclipse or IntelliJ. Is there a plugin that >> I can add in my IDE which will make it possible to invoke the pax-exam >> based JUnit tests using existing IDE's Junit controller? >> >> Thanks, >> Sahoo >> > > ______________________________**_________________ > general mailing list > [email protected] > http://lists.ops4j.org/**mailman/listinfo/general<http://lists.ops4j.org/mailman/listinfo/general> >
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
