1 .PHONY
: help
test phpunit
install coverage warning destructive parser noparser safe databaseless list-groups
5 CONFIG_FILE
= $(shell pwd
)/suite.xml
7 PU
= ${PHP} phpunit.php
--configuration
${CONFIG_FILE} ${FLAGS}
12 @echo
"Run 'make help' to get usage"
14 @echo
"WARNING -- some tests are DESTRUCTIVE and will alter your wiki."
15 @echo
"DO NOT RUN THESE TESTS on a production wiki."
17 @echo
"Until the default tests are made non-destructive, you can run"
18 @echo
"the destructive tests like so:"
20 @echo
" make destructive"
22 @echo
"Some tests are expected to be safe, you can run them with"
26 @echo
"You are recommended to run the tests with read-only credentials."
28 @echo
"If you don't have a database running, you can still run"
30 @echo
" make databaseless"
45 ${PU} --coverage-html ..
/..
/docs
/code-coverage
50 ${PU} --exclude-group Parser
,Broken
53 ${PU} --exclude-group Broken
,Destructive
56 ${PU} --exclude-group Broken
,Destructive
,Database
63 # make <target> [OPTION=value]
66 # phpunit (default) Run all the tests with phpunit
67 # install Install PHPUnit from phpunit.de
68 # tap Run the tests individually through Test::Harness's prove(1)
69 # help You're looking at it!
70 # coverage Run the tests and generates an HTML code coverage report
71 # You will need the Xdebug PHP extension for the later.
72 # [no]parser Skip or only run Parser tests
74 # list-groups List availabe Tests groups.
77 # CONFIG_FILE Path to a PHPUnit configuration file (default: suite.xml)
78 # FLAGS Additional flags to pass to PHPUnit