如何从Eclipse中的Maven构建中调试测试? [英] How to debug tests from a Maven build in Eclipse?

查看:93
本文介绍了如何从Eclipse中的Maven构建中调试测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何启动Maven构建并使测试出现在Eclipse的调试透视图中?

How is it possible to start a Maven build and let the tests appear in the debug perspective of Eclipse?

推荐答案

软件包或安装是一个原子动作,实际上不应该停止进行调试(除非您正在调试Maven插件).不过,您应该能够通过选择Eclipse项目并执行调试为-> JUnit测试"来调试测试.

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). You ought to be able to debug the tests by selecting the Eclipse project and doing a "Debug As -> JUnit Test", though.

这篇关于如何从Eclipse中的Maven构建中调试测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆