RE: [Informa-developer] Help with running test cases
Status: Beta
Brought to you by:
niko_schmuck
From: Pito S. <rp...@sa...> - 2003-09-18 01:55:05
|
Niko, Thanks. It worked. Now I have to diagnose why the TestCreateChannels = test is failing (which you warned me about...) - Pito -----Original Message----- From: inf...@li... [mailto:inf...@li...] On Behalf Of Niko Schmuck Sent: Wednesday, September 17, 2003 3:27 PM To: rp...@sa... Cc: inf...@li... Subject: Re: [Informa-developer] Help with running test cases I have fixed this now, the directory calculation inside=20 InformaTestCase was hard-wired to System.getProperty("user.dir") so = depends the tests to be started from the informa base directory.=20 This has now been fixed in the CVS repository, please update and try = again (it works for me in Eclipse -> select build.xml ->=20 right click -> Run Ant ... -> target "test"). Greetings, Niko On Wednesday 17 September 2003 18:02, nikolaus.schmuck wrote: > [sorry for posting again, seems my webmailer is a bit freaked] > > Hi Pito, > > You could try to set the \\\'basedir\\\' property when calling ant=20 > from Eclipse, right now I have no Eclipse available here, but as far=20 > as I remember you can set it in the dialog of the jvmargs:=20 > \\\"-Dbasedir=3DC:\\\\JavaWork\\\\informa\\\" ... Just a guess ;-) > > HTH, Niko > > > =3D=3D=3D > > > Niko > > I am using Eclipse, and everything almost works without modification. > > Running the tests also look mostly good, except that there are a bunch = > of places where your FileUtils.copyFile is failing, as > follows: > > [junit] WARNING: Error occurred while copying file C:\\eclipse=20 > 2.1\\test\\data\\xmlhack-0.91.xml to C:\\eclipse=20 > 2.1\\build\\test\\data\\out\\xmlhack-0.91.xml > > [junit] java.io.FileNotFoundException: C:\\eclipse=20 > 2.1\\test\\data\\xmlhack-0.91.xml (The system cannot find the path=20 > specified) > > The reason is that I am running Eclipse with a switch that all the=20 > working directories are outside the Eclipse root, in my case they are=20 > at: > > C:\\JavaWork\\informa > > The build directory is correctly created here:=20 > C:\\JavaWork\\informa\\build by your ant script. > > You note from that error message that when you are copying the various = > test rss files for some reason the copyFile method is looking under=20 > the c\\eclipse 2.1 directory and not finding it. > > By the way I noticed that de.informa.utils in the test directory=20 > derives AllTests from TestCase and not from InformaTestCase. I thought = > that might be the problem but changing it didn\'t resolve it. > > Any guesses? > > Pito ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Informa-developer mailing list Inf...@li... https://lists.sourceforge.net/lists/listinfo/informa-developer |