1 .PHONY
: help
test phpunit
install coverage warning destructive
4 CONFIG_FILE
= $(shell pwd
)/suite.xml
6 PU
= php phpunit.php
--configuration
${CONFIG_FILE}
11 @echo
"WARNING -- these tests are DESTRUCTIVE and will alter your wiki."
12 @echo
"DO NOT RUN THESE TESTS on a production wiki."
14 @echo
"Until the default suites are made non-destructive, you can run"
15 @echo
"the destructive tests like so:"
17 @echo
" make destructive"
26 pear channel-discover pear.phpunit.de
27 pear
install phpunit
/PHPUnit
33 ${PU} --coverage-html ..
/..
/..
/docs
/code-coverage
37 # make <target> [OPTION=value]
40 # phpunit (default) Run all the tests with phpunit
41 # install Install PHPUnit from phpunit.de
42 # tap Run the tests individually through Test::Harness's prove(1)
43 # help You're looking at it!
44 # coverage Run the tests and generates an HTML code coverage report
45 # You will need the Xdebug PHP extension for the later.
47 # CONFIG_FILE Path to a PHPUnit configuration file (default: suite.xml)
48 # FLAGS Additional flags to pass to PHPUnit