You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by Knut Urdalen <kn...@php.no> on 2009/04/28 01:11:34 UTC

Unit test updates

Hi all,

Just did some quick housekeeping of our unit test suite [1]. The unit 
test suite uses PHPUnit [2]. You can now run the entire suite simply by 
doing this:

$ cd src/test/php
$ phpunit

To create code coverage [3] you need Xdebug [4] installed and run:

$ phpunit --report=coverage

I currently use PHPUnit 3.3.14. While working with tickets for log4php 
2.0 we should also try to increase our code coverage.

Knut

[1] http://svn.apache.org/viewvc?view=rev&revision=769194
[2] http://www.phpunit.de
[3] http://www.urdalen.com/log4php/coverage/
[4] http://www.xdebug.org

Re: Unit test updates

Posted by Knut Urdalen <kn...@php.no>.
Christian Grobmeier wrote:
> ups, Xdebug isn't so easily installed on OSX. Will try that later.
>   
$ pecl install xdebug

should do. I work on OS X myself.

Just remember to load it as a zend_extension with absolute path

[xdebug]
zend_extension="/opt/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"

Knut


Re: Unit test updates

Posted by Christian Grobmeier <gr...@gmail.com>.
Hi Knut,

glad you are back!

I even have the tests running with PHPUnit with PHPUnit 3.1.16.

> To create code coverage [3] you need Xdebug [4] installed and run:

ups, Xdebug isn't so easily installed on OSX. Will try that later.

> I currently use PHPUnit 3.3.14. While working with tickets for log4php 2.0
> we should also try to increase our code coverage.

Totally agree!
Thanks for housekeeping!

Cheers,
Christian