开发者

debug grails integration tests in spring STS

开发者 https://www.devze.com 2023-01-12 15:50 出处:网络
Does anybody know if开发者_开发技巧 there is a way to debug integration tets using the built in functionality of Spring STS ?I don\'t know if this is what you meant, but you can right click on your te

Does anybody know if开发者_开发技巧 there is a way to debug integration tets using the built in functionality of Spring STS ?


I don't know if this is what you meant, but you can right click on your test file in the project explorer and then select Debug As -> Grails Command (test-app). This will load grails and run your test in debug mode.

What I haven't figured out is how to re-run the test through the JUnit view, once the test has been run once. It keeps throwing a warning saying that tests must be run in debug mode and that I need to have "Keep Junit running" in the launch configuration. There is no such setting for integration tests and I suspect that it might be because the framework gets reloaded on every test run.


there is an open issue.... https://issuetracker.springsource.com/browse/STS-551

but there appears to be a work around http://www.pubbs.net/201003/grails/8778-re-grails-user-how-to-debug-in-sts.html

0

精彩评论

暂无评论...
验证码 换一张
取 消