Category Archives: testing

Debugging Maven integration tests

TIL that if you pass -Dmaven.failsafe.debug when you run your Maven integration tests via the Failsafe plugin, Maven will start your test up listening on port 5005, waiting for you to hook your debugger in. For jdb you would say:

jdb -attach localhost:5005

And you’re good to go. Super convenient.

Advertisements