Index: trunk/phase3/maintenance/tests/Makefile |
— | — | @@ -1,17 +1,23 @@ |
| 2 | +# See |
| 3 | +# http://lists.wikimedia.org/pipermail/wikitech-l/2010-February/046657.html |
| 4 | +# for why prove(1) is the default target and not phpunit(1) |
| 5 | + |
2 | 6 | .PHONY: help test |
3 | | -all test: |
4 | | - phpunit |
| 7 | +all test: tap |
5 | 8 | |
6 | 9 | tap: |
7 | 10 | prove -e 'phpunit --tap' *Test*.php |
8 | 11 | |
| 12 | +phpunit: |
| 13 | + phpunit |
| 14 | + |
9 | 15 | install: |
10 | 16 | pear channel-discover pear.phpunit.de |
11 | 17 | pear install phpunit/PHPUnit |
12 | 18 | |
13 | 19 | help: |
14 | 20 | # Options: |
15 | | - # test (default) Run the unit tests |
16 | | - # tap Run the tests individually through Test::Harness's prove(1) |
| 21 | + # test (default) Run the tests individually through Test::Harness's prove(1) |
| 22 | + # phpunit Run all the tests with phpunit |
17 | 23 | # install Install PHPUnit from phpunit.de |
18 | 24 | # help You're looking at it! |