this might work and is what I get into the company/project root pom so all developers can use the approach. create a debug profile and get the tests to use is so you can debug in your preferred IDE. it doesn't give you the nice red/green process bars and fancy output but it might help you debug the running issue.
not tried it with the maven tests but i've used it for surefire and failsafe before, so something like this might work for you. 1) create debug profile which is simply, and make it suspend yes so it pauses till you connect your debugger otherwise you might miss the 1st few tests executing <profile> <id>debug</id> <properties> <testing.args.debug>-Xdebug -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y</testing.args.debug> </properties> </profile> 2) setup a default version of the properties <properties> <testing.args.debug></testing.args.debug> </properties> 3) change the maven-surefire-plugin and maven-failsafe-plugin to use testing.args.debug <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> ... <configuration> <argLine>... ${testing.args.debug}</argLine> ... <configuration> .. </plugin> John On 16 February 2017 at 11:52, Igor Fedorenko <i...@ifedorenko.com> wrote: > I don't use intellij, but if you are willing to try eclipse/m2e then > there are at least two viable ways to implement "debuggable" integration > tests. Personally I prefer takari plugin testing harness [1] > (disclosure: I wrote the thing, so I am definitely biased). > Alternatively, you can also use Maven Verifier [2] (this is what Maven > core uses). Both ways to run integration tests are supported by my > "Maven Development Tools" set of m2e extensions [3]. > > [1] https://github.com/takari/takari-plugin-testing-project > [2] http://maven.apache.org/shared/maven-verifier/ > [3] https://github.com/ifedorenko/com.ifedorenko.m2e.mavendev > > -- > Regards, > Igor > > On Thu, Feb 16, 2017, at 04:03 AM, org.apache.maven.u...@io7m.com wrote: >> On 2017-02-14T15:13:46 +0000 >> org.apache.maven.u...@io7m.com wrote: >> > >> > I can't work out how to run this integration >> > test from an IDE (Intellij IDEA, in this case) so that I can try to >> > step through the execution with a debugger and see what's going on. >> >> So nobody knows how to run an integration test from an IDE? How does >> anyone debug problems via tests? >> >> M >> Email had 1 attachment: >> + Attachment2 >> 1k (application/pgp-signature) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org