Can you test all of AppFuse?
I'll admit, it's time for me to get a G5. I can no longer test everything in AppFuse in one fell swoop. When I try to run this Ant build file (which I'd like to use with CruiseControl) on my Mac and Linux machines, I get OutOfMemory errors. My PowerBook has ANT_OPTS set to "-Xmx768m" and my Fedora Core 3 box has it set to "-Xms1024M -Xmx1024M". Both machines have 1 GB of RAM. The build dies a lot sooner on Linux (15 minutes), and the PowerBook gets really close to finishing (42 minutes). I'm guessing all the tests would take about 50 minutes on the PowerBook. There are currently 21 AppFuse combinations tested by this script. Spring is used in all of these, so I've eliminated that as a listed option.
NOTE: If you're trying this on Windows, remove the "fixcrlf" call at the beginning of the "test" target.
- Struts + Hibernate
- Struts + Hibernate and iBATIS
- Struts + iBATIS
- Struts with AppGen - Generic
- Struts with AppGen - Detailed
- Spring MVC + Hibernate
- Spring MVC + iBATIS
- Spring MVC with AppGen - Generic
- Spring MVC with AppGen - Detailed
- WebWork + Hibernate
- WebWork + iBATIS
- WebWork with AppGen - Generic
- WebWork with AppGen - Detailed
- JSF + Hibernate
- JSF + iBATIS
- JSF with AppGen - Generic
- JSF with AppGen - Detailed
- Tapestry + Hibernate
- Tapestry + iBATIS
- Tapestry with AppGen - Generic
- Tapestry with AppGen - Detailed
So, the question is - can your machine run all the tests for AppFuse? If so, let me know your specs. I'd love to get this setup for CruiseControl, but if I can't even run it with Ant, I doubt CruiseControl will be any better. I realize I could split things up, but I prefer to have one build file.
Posted by Benjamin Francisoud on December 10, 2004 at 04:11 PM MST #
Posted by Sekar on December 11, 2004 at 12:41 AM MST #
Posted by john cavacas on December 11, 2004 at 01:56 AM MST #
Posted by Richard on December 11, 2004 at 06:27 AM MST #
Richard - you do have a point. It's possible there's a memory leak in one of the libraries that AppFuse uses (or in the code itself). In reality, to test everything in a single AppFuse combination only takes a couple of minutes - but the combination of testing them all takes around 45 minutes. I should get a dual AMD to power my Linux box - I've been very impressed with AMD's boxes in the past.
Another option, which I tried before and it worked - was to split the tests into two projects - one for AppGen and one w/o.
Posted by Matt Raible on December 11, 2004 at 04:28 PM MST #
I tried to run YourKit on Appfuse but couldn't get the tests to run:
G:\appfuse\checkout\appfuse-struts\test\web\web-tests.xml:54: Test fail Test step verifytitle (G:\appfuse\checkout\appfuse-struts\test\web\web- tests.xml:63: ) named "we should see the login title again" failed with message "Wrong document title found! Expected "AppFuse ~ Login" but got "An error has o ccurred""
cargo.log contains this error message:
[appfuse-struts-struts-struts] ERROR [http-8180-Processor22] MailEngine.send(49) | Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect
Is there a way to change these settings for the tests (or disable mail) ?
Posted by Thomas Dudziak on December 13, 2004 at 01:06 PM MST #
Posted by foreverman on January 25, 2005 at 02:40 AM MST #
foreverman - You should be able to change the properties file that's loaded at the top of the test/web/web-tests.xml file. In the future, you might want to subscribe to the AppFuse mailing list for these questions.
Posted by Matt Raible on January 25, 2005 at 03:09 AM MST #