Debugging unit tests run on cmd line using Eclipse -


i have large project has many dependencies, result, won't able build on eclipse. using maven , can build project on command line. know how run unit tests on command line.

my question is possible debug unit tests running on command line using eclipse?

the maven surefire plugin allows remote debugging of unit tests.

you need call maven using following command:

mvn -dmaven.surefire.debug test 

the tests automatically pause , await remote debugger on port 5005. can attach running tests using eclipse. can setup "remote java application" launch configuration via menu command "run" > "open debug dialog..."


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -