summaryrefslogtreecommitdiff
path: root/maintenance/tests/Makefile
blob: b2c0fb716135f2c73e9839eba2567dfe6451bc8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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: 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 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!