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 / Tools / October 2006

Tip: Looking for answers? Try searching our database.

Eclipse -- Junit test definitions

Thread view: 
kevin  cline - 13 Oct 2006 22:13 GMT
Is there a way to set the classpath for all Junit tests runs at one
time?  Currently it seems I must define the classpath for each test
case, even though all the test cases require the same classpath.

Also, is there a way to conveniently store launch definitions and
project build paths in the source code control system?  It seems that
everytime we need a new library, all N developers have to go add that
library to the class path for their project.  I'm used to storing all
this stuff in a Makefile that is checked in to the source code control
system, so that when one developer adds something, everyone else can
see it.  But with Eclipse it seems that there are any number of actions
that must be repeated by every developer on the team.
Tonny Madsen - 15 Oct 2006 16:37 GMT
Hej Kevin,

You must

- open the run dialogue via "Run" -> "Run..."
- select the proper launch configuration
- goto the "Common" tab
- in the "Save as" group select "Shared file" and enter a file name.

Voila!

/tonny

> Is there a way to set the classpath for all Junit tests runs at one
> time?  Currently it seems I must define the classpath for each test
[quoted text clipped - 8 lines]
> see it.  But with Eclipse it seems that there are any number of actions
> that must be repeated by every developer on the team.
kevin  cline - 18 Oct 2006 22:01 GMT
> Hej Kevin,
>
[quoted text clipped - 6 lines]
>
> Voila!

Thanks.  That's pretty close, except that it seems a launch file can
not be run directly, but instead has to be opened first in the Run...
dialog.
kevin  cline - 18 Oct 2006 22:03 GMT
> Hej Kevin,
>
[quoted text clipped - 6 lines]
>
> Voila!

Now if there were some way to save a whole bunch of them at once...


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



©2008 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.