Continuous integration with Hudson

at 2009-10-02 in Unittests by friebe (0 comments)

The XP Framework's unittest suite has been extended by a new test listener which produces an XML file adequate for continuous integration systems. Test listeners receive events such as when as test run is started, a test succeeds, fails or is skipped and finally when the run is completed. In fact, the dots you see appearing on your console when running tests are implemented with a listener!

Here's what the Hudson dashboard looks like:

Hudson dashboard

To make the unittest command produce the XML files necessary to have Hudson render this overview, use the "-l" option:

$ unittest -l unittest.XmlTestListener hudson.xml [test [test [...]]]

Happy testing:)



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «Continuous».