[英]How to debug tests from a Maven build in Eclipse?
如何启动Maven构建并让测试出现在Eclipse的调试透视图中?
A package or install is meant to be an atomic action that really shouldn't be stopped for debugging (unless you're debugging a maven plug-in). 包或安装意味着一个原子操作,实际上不应该停止调试(除非你正在调试maven插件)。 You ought to be able to debug the tests by selecting the Eclipse project and doing a "Debug As -> JUnit Test", though.
您应该能够通过选择Eclipse项目并执行“Debug As - > JUnit Test”来调试测试。
If you run the Maven build with the Ecplise Maven Plugin : 如果您使用Ecplise Maven插件运行Maven构建:
How to configure it: 如何配置:
How to use it: 如何使用它:
-Dmaven.surefire.debug
" option -Dmaven.surefire.debug
”选项启动Maven构建 I found that interesting solution here , and it was useful to me (which mean I tested it, and it worked), so I wanted to share it. 我在这里发现了一个有趣的解决方案,它对我有用(这意味着我测试了它,并且它有效),所以我想分享它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.