1 .PHONY
: help
test phpunit
install coverage warning destructive parser noparser list-groups
5 CONFIG_FILE
= $(shell pwd
)/suite.xml
7 PU
= php phpunit.php
--configuration
${CONFIG_FILE}
12 # Use 'make help' to get usage
13 @echo
"WARNING -- these tests are DESTRUCTIVE and will alter your wiki."
14 @echo
"DO NOT RUN THESE TESTS on a production wiki."
16 @echo
"Until the default suites are made non-destructive, you can run"
17 @echo
"the destructive tests like so:"
19 @echo
" make destructive"
28 pear channel-discover pear.phpunit.de
29 pear
install phpunit
/PHPUnit
35 ${PU} --coverage-html ..
/..
/..
/docs
/code-coverage
41 ${PU} --exclude-group Parser
48 # make <target> [OPTION=value]
51 # phpunit (default) Run all the tests with phpunit
52 # install Install PHPUnit from phpunit.de
53 # tap Run the tests individually through Test::Harness's prove(1)
54 # help You're looking at it!
55 # coverage Run the tests and generates an HTML code coverage report
56 # You will need the Xdebug PHP extension for the later.
57 # [no]parser Skip or only run Parser tests
59 # list-groups List availabe Tests groups.
62 # CONFIG_FILE Path to a PHPUnit configuration file (default: suite.xml)
63 # FLAGS Additional flags to pass to PHPUnit