JUnit's error "No tests found with Test runner JUnit4" and "the input type of the launch configuration does not exist"

Source: Internet
Author: User

"Foreword" uncomfortable ...

Eclipse always error: No tests found with Test runner JUnit4

First, here are a few points

1 Have you imported the JUnit package (which you brought in eclipse) if you used the spring test class to import the Spring-test package

2 Whether your package version is too low

3 have not used @testcase annotation

4 has not inherited TestCase class or related test parent class (as if Spring-test does not need)

5 Quote TestCase?

——————————————————

And then I did it. and reported the input type of the launch configuration does not exist error

Workaround:

If you are are getting the above error message in the Eclipse IDE, while running your test case, just make sure so 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 is done.

Click on your package right click BuildPath dot use as source folder done.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.