Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Junit error in Eclipse

Thread view: 
chins_inus@yahoo.com - 03 Nov 2006 01:53 GMT
Hi,

WHen i try to run junit from eclipse it gives me an error, "Test type
does not exist". Does anyone has any idea why this error.

Thanks.
Manish Pandit - 03 Nov 2006 02:01 GMT
chins_i...@yahoo.com wrote:
> Hi,
>
> WHen i try to run junit from eclipse it gives me an error, "Test type
> does not exist". Does anyone has any idea why this error.

Did you create Junit tests beforehand? If not, here is how you create
test cases with eclipse:

Right click the source, click new and then JUnit Test Case. That will
prompt you to set up package, folder and the name of the Test Case
Class. After that, you can pick all the methods you want to be included
in the test case. It will then create test case as java code. You will
need to add your own code inside the stubbed out testXXX() methods that
it generates. You can right click the test case code and select Run as
-> JUnit Test.

You are probably missing one of these steps, leading to that error.

-cheers,
Manish
Reshma.Kundapur@gmail.com - 16 Nov 2006 05:20 GMT
> chins_i...@yahoo.com wrote:
> > Hi,
[quoted text clipped - 17 lines]
> -cheers,
> Manish

Hi
Even i am getting the same error JUNIT test type not found  as per the
TEst Case is  concerned it is perfect as the same test case is running
in other machines
Please do u have any other suggestions

Regards,
Reshma
Arne Vajhøj - 03 Nov 2006 02:30 GMT
> WHen i try to run junit from eclipse it gives me an error, "Test type
> does not exist". Does anyone has any idea why this error.

Are you using JUnit 3 or 4 in Eclipse ?

Many people have had problems with 4 - 3 works as it always have.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.