Eclipse function/plugin that finds corresponding junit class?(找到相应junit类的Eclipse函数/插件?)
问题描述
我一直在寻找 Eclipse 的一个特性,它可以让您右键单击主源类并找到相应的 JUnit 类,而无需浏览项目的测试类.我正在使用 Mylyn,它有助于减少混乱,但如果有一个自动执行查找的功能会更容易.
I've been searching high and low for an Eclipse feature that lets you right-click on a main source class and find the corresponding JUnit class(es), without me having to navigate through the test classes of my project. I am using Mylyn which helps reduce the clutter but it would be much easier if there was a feature that performs a find automagically.
我遵循 Maven 标准目录布局(/src/main/java、/src/test/java 等).我所有的测试类都命名为*Test.我想这可能是可行的,并且可能已经存在.
I am following the Maven standard directory layout (/src/main/java, /src/test/java, etc.). And all of my test classes are named *Test. I'd imagine this can be feasibly implemented and probably already exists.
Eclipse 中是否有一个函数或插件可以为给定的主类找到相应的 JUnit 测试类?
Is there a function or plugin in Eclipse that finds the corresponding JUnit test classes for a given main class?
推荐答案
moreUnit插件可能适合你.
能力(来自其网站):
- 装饰有测试用例的类.
- 在编辑器中标记正在测试的方法.
- 通过菜单或快捷方式跳转到编辑器中的测试用例/测试方法.
- 重命名类/方法和moreUnit也会重命名相应的测试代码.
- 移动类和 moreUnit 将移动相应的测试.
- 通过菜单或快捷方式为编辑器中光标位置下的方法生成测试方法存根.
这篇关于找到相应junit类的Eclipse函数/插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:找到相应junit类的Eclipse函数/插件?
基础教程推荐
- 将 Windows 证书导入 Java 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- JPA惰性列表上的流 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- Maven:无效的目标版本:10 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
