|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
m2eclipse with surefireHi!
Does anybody know if m2eclipse is implementing some kind of integration between maven's surefire plugin ('test' phase) and, for example, the junit jdt plugin? It would be very nice if one could view junit test results in junit plugin's gui. Regards, -- Pedro Pedruzzi | V2COM --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: m2eclipse with surefireNo, there are currently no plans to integrate surefire plugin and JDT UI,
but you should be able to run project unit tests directly from Eclipse UI, i.e. right-click, run as, junit tests. Is there a particular reason you need/prefer to run maven 'test' phase? > Hi! > > Does anybody know if m2eclipse is implementing some kind of > integration between maven's surefire plugin ('test' phase) and, for > example, the junit jdt plugin? > > It would be very nice if one could view junit test results in junit > plugin's gui. > > Regards, > > -- > Pedro Pedruzzi | V2COM > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: m2eclipse with surefirePedro Pedruzzi wrote:
> Does anybody know if m2eclipse is implementing some kind of > integration between maven's surefire plugin ('test' phase) and, for > example, the junit jdt plugin? > > It would be very nice if one could view junit test results in junit > plugin's gui. > As Igor already pointed out, you can run project tests using regular Run as... / JUnit test. JUnit UI doesn't really allow any pluggability, though it is probably relatively simple to implement import of Surefire reports to JUnit view. Say, it could be an action that you could call from the reports folder, but I don't remember if JUnit view in Eclipse 3.3 had an Import action (I am pretty sure it wasn't in 3.2 and I see it in 3.4). Also note that you could open txt reports as text files and stacktrace hyperlinking would work there (if you have Mylyn installed). regards, Eugene --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: m2eclipse with surefireHi Igor and Eugene. Thanks for your attention.
Igor Fedorenko wrote: > No, there are currently no plans to integrate surefire plugin and JDT UI, > but you should be able to run project unit tests directly from Eclipse UI, > i.e. right-click, run as, junit tests. I noticed that. > Is there a particular reason you > need/prefer to run maven 'test' phase? Using Maven as build tool, I would prefer running every build phase with it. For example, if I ask maven to build, pack and install some project, it will pass trough the test phase. If some tests happen to fail than I will have to rerun those externaly (from Maven) to get more information (stack trace) and have IDE integration, without having to handle generated report files directly. It is really very natural testing with 'Run as...', but if Maven has its own testing phase, it would be very nice to have that more integrated with JUnit or TestNG, eclipse GUIs (specially in a failure case). Regards, -- Pedro Pedruzzi | V2COM --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: m2eclipse with surefirePedro Pedruzzi wrote:
> Using Maven as build tool, I would prefer running every build phase > with it. For example, if I ask maven to build, pack and install some > project, it will pass trough the test phase. If some tests happen to > fail than I will have to rerun those externaly (from Maven) to get > more information (stack trace) and have IDE integration, without > having to handle generated report files directly. > > It is really very natural testing with 'Run as...', but if Maven has > its own testing phase, it would be very nice to have that more > integrated with JUnit or TestNG, eclipse GUIs (specially in a failure > case). > developer's workflow. The primary goal of m2eclipse is to support quick turnaround during development cycles and to facilitate edit, compile (which is done transparently by JDT) and test from within the IDE. Using workspace resolution provided by m2eclipse you don't have to install or deploy anything while coding. So you don't really need to run mvn install in order to run your tests. Again, because m2eclipse made it transparent, using Run As... / JUnit in the IDE would give you the same results as running mvn test (assuming that you have up to date project configuration in the IDE). You don't really want to run "mvn install" every time you edited something in your IDE, but at the point you get to installing your stuff you should be secure that all tests would pass. All in all I'd say it wouldn't be a high priority for m2eclipse team to implement support showing surefire reports in junit view, but if someone would want to contribute such feature, we will be glad to accept the patch and will help implementing it. regards, Eugene --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: m2eclipse with surefireHi!
On Thu, Jun 26, 2008 at 2:50 PM, Eugene Kuleshov <eu@...> wrote: > Pedro Pedruzzi wrote: >> >> Using Maven as build tool, I would prefer running every build phase >> with it. For example, if I ask maven to build, pack and install some >> project, it will pass trough the test phase. If some tests happen to >> fail than I will have to rerun those externaly (from Maven) to get >> more information (stack trace) and have IDE integration, without >> having to handle generated report files directly. >> >> It is really very natural testing with 'Run as...', but if Maven has >> its own testing phase, it would be very nice to have that more >> integrated with JUnit or TestNG, eclipse GUIs (specially in a failure >> case). >> > > I see where you coming from, but that I guess it really depend on the > developer's workflow. > > The primary goal of m2eclipse is to support quick turnaround during > development cycles and to facilitate edit, compile (which is done > transparently by JDT) and test from within the IDE. And it does a _great_ job in that! :-) > Using workspace > resolution provided by m2eclipse you don't have to install or deploy > anything while coding. So you don't really need to run mvn install in order > to run your tests. Again, because m2eclipse made it transparent, using Run > As... / JUnit in the IDE would give you the same results as running mvn test > (assuming that you have up to date project configuration in the IDE). You > don't really want to run "mvn install" every time you edited something in > your IDE, but at the point you get to installing your stuff you should be > secure that all tests would pass. That is right. I see your point. > All in all I'd say it wouldn't be a high priority for m2eclipse team to > implement support showing surefire reports in junit view, but if someone > would want to contribute such feature, we will be glad to accept the patch > and will help implementing it. Thank for the clarifying! Regards, -- Pedro Pedruzzi | V2COM --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free Forum Powered by Nabble | Forum Help |