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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to