From: Ævar Arnfjörð Bjarmason Date: Sat, 6 Feb 2010 16:20:30 +0000 (+0000) Subject: Make 'make tap' the default target and add a 'make phpunit' target to X-Git-Tag: 1.31.0-rc.0~37901 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=c76f5ee173303b171eccea4e8b4174060611fb1e;p=lhc%2Fweb%2Fwiklou.git Make 'make tap' the default target and add a 'make phpunit' target to run things with phpunit. phpunit as-is consumed up to 800MB of memory on PHP 5.2.12. Running it also results in test failures for LanguageConverterTest.php which is tripping over some setup code a previous test made. The TAP target also runs in ~15 seconds on my machine, whereas I have to kill phpunit after 8 minutes of running tests & eating my memory. --- diff --git a/maintenance/tests/Makefile b/maintenance/tests/Makefile index 5c8139485d..b2c0fb7161 100644 --- a/maintenance/tests/Makefile +++ b/maintenance/tests/Makefile @@ -1,17 +1,23 @@ +# See +# http://lists.wikimedia.org/pipermail/wikitech-l/2010-February/046657.html +# for why prove(1) is the default target and not phpunit(1) + .PHONY: help test -all test: - phpunit +all test: tap tap: prove -e 'phpunit --tap' *Test*.php +phpunit: + phpunit + install: pear channel-discover pear.phpunit.de pear install phpunit/PHPUnit help: # Options: - # test (default) Run the unit tests - # tap Run the tests individually through Test::Harness's prove(1) + # test (default) Run the tests individually through Test::Harness's prove(1) + # phpunit Run all the tests with phpunit # install Install PHPUnit from phpunit.de # help You're looking at it!