如何在 Eclipse 中重命名 TestNG 调试配置
在我为 Eclipse 安装 TestNG 插件后,我尝试对其进行配置。在“运行”和“调试”配置中,我获得了 testng 配置的名称 - Launch.label。我正在关注这里的教程 - http://testng.org/doc/eclipse.html# eclipse-installation 将配置命名为 TestNG。所以我有两个问题 1. 为什么我的配置被标记为Launch.label而不是TestNg 2.我怎样才能改变它。 版本 - 测试NG - 5.14.1 Eclipse - 3.6
- 更新 Cedric 已修复该问题,并在 http://beust.com/eclipse/ 位置放置了补丁。 我使用补丁进行了测试,配置命名和显示现在工作正常。即我检查了两件事。
- TestNG 调试配置显示为 TestNG 而不是 Launch.label
- 我可以创建并重命名新配置
After I installeed TestNG plugin for Eclipse, I tried to configure the same. In the Run as well as Debug configuration, I get the name - Launch.label for a testng configuration. I am following a tutorial here - http://testng.org/doc/eclipse.html#eclipse-installation that names the configuration as TestNG. So I have two questions
1. Why is my configuration being labeled as Launch.label instead of TestNg
2. How can I get it changed.
Version -
TestNG - 5.14.1
Eclipse - 3.6
- Update
Cedric has fixed the issue and put a patch at the location http://beust.com/eclipse/.
I tested with the patch and the configuration naming and display is working fine now. i.e. I checked the two things.- The TestNG Debug configuration is showing as TestNG instead of Launch.label
- I can create and rename a new configuration
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您谈论的是“调试配置”窗口左侧树视图中的标签,那么这是启动配置类别的名称,而不是您个人的配置;它的价值来自插件本身,您无法更改它。听起来该插件有一个错误,即 TestNG 类别的实际名称未正确设置。
If you're talking about the label in the left-side tree view of the "Debug Configurations" window, that's the name of a category of launch configurations, not your individual config; it's value comes from then plug-in itself and you can't change it. It sounds like the plugin has a bug where the actual name of the TestNG category isn't being set correctly.