unit testing resources
"Gregor J. Rothfuss" <[email protected]> Wed, 9 Apr 2003 17:58:40 +0200
| Newsgroups | gmane.comp.cms.wyona.devel |
|---|---|
| Message-ID | <[email protected]> |
im compiling resources to settle on a unit testing framework
for lenya. any pointers, experiences welcome.
apache jakarta xmlunit
======================
XMLUnit is a JUnit extension for unit testing applications that
generate or manipulate XML.
http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/xmlunit/
sample:
http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/xmlunit/src/org/apache
/commons/xmlunit/TestXMLTestCase.java?rev=1.1
verdict: extremely limited, cvs still at 1.1 after 2 years
probably superceeded by apache jakarta latka
chello
======
Its main goal is to be a good start for any new
Cocoon 2 project. The second goal is to help Cocoon
developers to set up good practices soon in their project:
one line build command, unit testing, functional testing,
continuous integration, documentation system...
http://chello.sourceforge.net/
sample:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/chello/chello/test/src/test/f
r/ivision/chello/TestHello.java?rev=1.1.1.1
verdict: offers very little in the unit testing dept.
HTTPUnit
========
HttpUnit is a free, open source Java API for accessing
web sites without a browser, and is ideally suited for automated
unit testing of web sites when combined with a Java unit test
framework such as JUnit
http://httpunit.sourceforge.net/
sample:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/httpunit/httpunit/test/com/me
terware/httpunit/XMLPageTest.java?rev=1.2
verdict: very active community, contains quite a few samples
very low level
Apache Latka
============
Latka is a functional (end-to-end) testing tool. It is
implemented in Java, and uses an XML syntax to define a
series of HTTP (or HTTPS) requests and a set of validations
used to verify that the request was processed correctly.
http://jakarta.apache.org/commons/latka/
sample:
http://cvs.apache.org/viewcvs/jakarta-commons/latka/src/watchdog/Attic/Latka
ServletTests.xml?rev=1.4
verdict: fairly active, eclipse integration
Anteater
========
Anteater is a testing framework designed around Ant,
from the Apache Jakarta Project. It provides an easy
way to write tests for checking the functionality of a
Web application or of an XML Web service.
http://aft.sourceforge.net/
sample:
http://aft.sourceforge.net/examples/index.html
verdict: quite active, written by jeff turner, many samples
WebTest
=======
Canoo WebTest is a free open source tool for automated
testing of web applications
http://webtest.canoo.com/
sample:
http://webtest.canoo.com/webtest/manual/samples.html
verdict: builds on httpunit, not heavily used inside apache
--
Gregor J. Rothfuss [email protected] +41 1 272 9161
Wyona AG, Hardstrasse 219, CH-8005 Zurich
Open Source CMS http://www.wyona.org http://www.wyona.com
OSCOM 3 - Third Open Source Content Management Conference
May 28th - 30th 2003, Harvard University, Cambridge, MA, USA
http://www.oscom.org/Conferences/Cambridge/