Skip to end of metadata
Go to start of metadata

Due to some class loading issue, result from test might depends if you run them inside eclipse or with Maven. Using eclipse to debug test run with maven is easy. Say you want to debug the MySuperClassTest class:

  • start the maven test just for this class in debug mode:
    the test will wait for eclipse to connect.
  • open the Debug Configuration of eclipse, and set up a remote application on port 5005. Run the configuration, the test will resume. You can use break point and all the features of eclipse debugging.

More goodies and information are available on the surefire plugin page

Labels
  • None