From: Steve W. <sw...@pa...> - 2001-12-22 16:38:04
|
On Sat, 22 Dec 2001, Reini Urban wrote: > > 3) Do we really need to distribute the tests directory? The only people > > who use it probably use cvs anyway. I for one have not the faintest idea > > what the tests are for! Automated, aggressive testing is a tennet of Extreme Programming and a good idea... I haven't put much effort into the tests since the initial import. I think as long as we are shipping developer versions (1.3 branch) the tests can stay included, since they don't use much space. For a stable release (1.2 or 1.4) they would be left out. The tests use a little system I wrote as a consultant for a small company here in NYC. It's httpunit (Java) and Ant (from the Jakarta project). In a sense it works like a browser and exercises a Web application as a user would. > > Yes, the testes inspired me yesterday to download the sun jre runtime, > but then I needed another 30mb download for the complete sdk just for > javac.exe > is there any more info how to run the tests or where to get the needed > classes, steve? > sun j2sdk1.4.0-beta3 Hmm. I thought I had a README in there. Doh. I can track this down and add it. I had a little tutorial I wrote but I must not have included it. > $ javac AAA_GetHomePage.java > AAA_GetHomePage.java:2: package com.meterware.httpunit does not exist > import com.meterware.httpunit.*; > ^ > AAA_GetHomePage.java:18: cannot resolve symbol > symbol : class WebRequest > location: class AAA_GetHomePage > WebRequest request; > ^ Ja, you need httpunit in your $CLASSPATH. It's available from Sourceforge; just download the jar file and add it to your $CLASSPATH. Then install Ant, and you're all set. The tests don't work "out of the box" right now because I haven't figured out how to give the tests a URL that will work anywhere (certainly doable, like with 127.0.0.1 or a small config file the developer uses.. or even parsing the index.php). After that it's a simple matter of writing more little test scripts. I'll be able to make it test lots of things: login diff follow links edit a page and make sure the change is there and many more. Then I want to set up a cron job to run the tests against the alpha site every night after it's been installed, and send an email (I read something on sourceforge recently on how to do that as well) with the test results. It's just something that's been on the backburner for some time. ~swain --- http://www.panix.com/~swain/ "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." -- Frank Zappa |