9 messages in org.apache.struts.dev[s2] Hurray, we have functional/integ...
FromSent OnAttachments
Don BrownJul 29, 2008 7:40 am 
Musachy BarrosoJul 29, 2008 7:49 am 
Cenk ÇiviciJul 29, 2008 7:54 am 
Wendy SmoakAug 3, 2008 9:49 am 
Frans ThamuraAug 3, 2008 9:55 am 
Wendy SmoakAug 3, 2008 9:59 am 
Frans ThamuraAug 3, 2008 10:01 am 
Don BrownAug 3, 2008 5:56 pm 
Don BrownAug 3, 2008 5:57 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[s2] Hurray, we have functional/integration testsActions
From:Don Brown (mrd@twdata.org)
Date:Jul 29, 2008 7:40:24 am
List:org.apache.struts.dev

I've started adding functional tests to Struts 2 by adding a few to the REST showcase application, running against Tomcat 5.x, Jetty 6.x, JBoss 4.2.x, and Resin 3.x. The magic happens through a new Maven 2 plugin I developed called maven-itblast-plugin, which enables multiple integration test runs against multiple containers in one go. For more info, see http://github.com/mrdon/maven-itblast-plugin/wikis/home

Just in creating the integration tests, I found a bug in the REST mapper around the ;jsessionid value in the URI when ran in Jetty 6, and an invalid TLD problem that JBoss 4.2.x picked up, so it has already proven its worth. For the tests, I'm using JWebUnit and HtmlUnit, mainly because that is what we use at work, so I'm familiar with it.

The new plugin came about because I was annoyed how much pom XML is required to run integration tests against multiple containers, and even then, you can only run one container at a time in a build, which means lots of Bamboo plans.

Soo... next, I plan to add the integration tests to our showcase app, then we can start adding new tests for any new features and/or bug fixes. I know we have Selenium test tickets in JIRA, but from what we've found at Atlassian, Selenium is kind of a pain to setup and write proper tests for, and really, most of what we would want to test would be basic HTML anyways.

Don