在带有 groovy 插件的 Eclipse 中,我尝试启动一个测试 @Test public void testToLaunch() {...}
但出现错误:
The input type of the launch configuration does not exist
启动配置上下文中的输入类型
是什么?(在启动配置窗口中找不到此类条目)
注意:我尝试了 sts 2.8.1 和 e3.7
最佳答案
如果 groovy 类存在问题,也可能会发生这种情况。需要检查的一些事项:
1) 确保类名与文件名完全匹配 (filename = MyTest.groovy
)
package com.mypackage;
import groovy.util.GroovyTestCase;
class MyTest extends GroovyTestCase {}
2) 确保文件中定义的包与文件实际所在的包匹配。
关于eclipse - Groovy Eclipse 无法启动 junit 测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12781806/