Re: Daily updated unit tests and code coverage for PEAR

From: Date: Tue, 03 Jul 2007 19:39:30 +0000
Subject: Re: Daily updated unit tests and code coverage for PEAR
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47174@lists.php.net to get a copy of this message
On 7/3/07, Christian Weiske <cweiske@cweiske.de> wrote:
Hello all, After some work in cvs I managed to set up daily updated unit tests and code coverage reports for all packages in pear cvs that have a compatible AllTests.php file You can find them at http://pear.cweiske.de/unittests-cvs/
Christian, This is a great addition... thanks for finding a solution for this. To those wondering how to get their tests included in the report here's some info I pulled together with Christian's help. You can easily model your AllTests.php file from one of Christian's at http://cvs.php.net/viewvc.cgi/pear/Net_Wifi/tests/AllTests.php?view=markup place the AllTests.php file in Your_Package_Name/tests/AllTests.php and replace Net_Wifi with Your_Package_Name. Be sure to also require your PHPUnit suite test file(s) and add test suites for all you need to test with the $suite->addTestSuite('Your_Package_NameTest'); Christian has built some magic into the global AllTests.php file to build some symlinks for packages which are missing directories and use the baseinstalldir option in their package.xml file, but you may need to change some paths so that the tests can be run from a CVS checkout of the files without your package being pear installed. Thanks again Christian.
-- Mit freundlichen Grüßen/Regards, Christian Weiske -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- -Brett Bieber http:saltybeagle.com aim:ianswerq

« previous php.pear.dev (#47174) next »