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 / May 2007

Tip: Looking for answers? Try searching our database.

Print Files From JUNit to the "results" Directory

Thread view: 
Reporter - 19 May 2007 16:54 GMT
I want to have some of my JUNit tests write additional files to the
"results" directory.  I know I could easily hack my code to write to
that directory, but is there some elegant way that I can tap into the
JUnit "todir" attribute from within the context of the TestCase class.
Philip.Lourandos@gmail.com - 23 May 2007 17:02 GMT
> I want to have some of my JUNit tests write additional files to the
> "results" directory.  I know I could easily hack my code to write to
> that directory, but is there some elegant way that I can tap into the
> JUnit "todir" attribute from within the context of the TestCase class.

I'm not too sure about retrieving the toDir from junit. But you could
always set a system property in ant(assuming you are using ant). With
spring I have a test application context I have all directories and
other test beans configured in.


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.