Re: Running mojo unit test in the debugger

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Running mojo unit test in the debugger

olamy
perso I'm using -Dmaven.surefire.debug and attach a debugger
I only trust Maven build (not IDE build :) )

On Sat, 9 May 2020 at 07:17, Benson Margulies <[hidden email]> wrote:

> I am trying to recall how to debug a Junit test that uses
> AbstractMojoTestCase. Simply asking an IDE to debug the test fails with
> plexus container errors. I cannot recall if these can be debugged as
> ordinary unit tests somehow, or whether we need to set remote debugging
> options to the surefire plugin and attach the debugger.
>


--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy