How might I integrate phpunit with Hudson CI? How might I integrate phpunit with Hudson CI? php php

How might I integrate phpunit with Hudson CI?


I installed the xUnit plugin, pointed it at my log file (from job config), and it works like a charm. It appears there is no longer a need for any custom hacks.

http://wiki.hudson-ci.org/display/HUDSON/xUnit+Plugin


With the last answer being from 2009 and a lot of people migrating from Hudson to Jenkins now due to Oracle, consider using the Jenkins Template for PHP, offering a free and convenient template for all your configuration needs of PHPQATools, like pdepend, phpmd, phpcs and phpunit in one convenient template.

There is also the IRC channel #jenkins-php on Freenode for support.


you can also use this xslt file to convert phpunit xml to hudson/junit xml:

<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">    <xsl:element name="testsuites">        <xsl:for-each select="//testsuite[@file]">             <xsl:copy-of select="." />        </xsl:for-each>    </xsl:element></xsl:template></xsl:stylesheet>