JUnit的报错“No tests found with test runner JUnit4”和“The input type of the launch configuration does not exist”
2010-05-26 21:59
1296 查看
【前言】不爽!!!
Eclipse总是报错: No tests found with test runner JUnit4
首先如下几点
1 你有没有导入Junit包(eclipse中就自带了) 如果用到了spring的测试类 有没导入 spring-test包
2 你的包版本是否太低
3 有没 使用@TestCase 注解
4 有没继承TestCase类 或相关测试父类 (好像Spring-Test 不需要)
5 引用TestCase了吧
——————————————————
后来我都做到了却又报了The input type of the launch configuration does not exist错误
解决方法:
If you are getting the above error message in Eclipse IDE, while running your test case, just make sure that you have the test class as a part of the “eclipse source folder” definition. Easiest way. Right click on the folder –> Build Path –>Use as source folder Done.
点着你的包右击点 buildPath 点 Use as source folder Done.
Eclipse总是报错: No tests found with test runner JUnit4
首先如下几点
1 你有没有导入Junit包(eclipse中就自带了) 如果用到了spring的测试类 有没导入 spring-test包
2 你的包版本是否太低
3 有没 使用@TestCase 注解
4 有没继承TestCase类 或相关测试父类 (好像Spring-Test 不需要)
5 引用TestCase了吧
——————————————————
后来我都做到了却又报了The input type of the launch configuration does not exist错误
解决方法:
If you are getting the above error message in Eclipse IDE, while running your test case, just make sure that you have the test class as a part of the “eclipse source folder” definition. Easiest way. Right click on the folder –> Build Path –>Use as source folder Done.
点着你的包右击点 buildPath 点 Use as source folder Done.
相关文章推荐
- JUnit: The input type of the launch configuration does not exist
- Eclipse下JUnit报错“The input type of the launch configuration does not exist ”
- JUnit: The input type of the launch configuration does not exist
- JUnit: The input type of the launch configuration does not exist
- Eclipse下编译C/C++程序出错:The program file specified in the launch configuration does not exist
- 【Eclipse】Eclipse C++ MINGW :The program file specified in the launch configuration does not exist
- the input type of the launch configuration
- Cannot execute as the database principal because the principal "guest" does not exist, this type of principal cannot be impersonated, or you do not have permission.
- SQL Server 对等复制配置失败后无法删除重建,报错:Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be im
- Linux eclipse 解决The program file specified in the launch configuration does not exist问题
- The serializable class Client does not declare a static final serialVersionUID field of type long
- Description Resource Path Location Type Java compiler level does not match the version of the ins
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- 关于The serializable class XXX does not declare a static final serialVersionUID field of type long的警告
- The type or namespace name 'Service' does not exist 异常处理
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- The serializable class XXX does not declare a static final serialVersionUID field of type long的警告
- The serializable class XXX does not declare a static final serialVersionUID field of type long
- Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t