Fix (bug 29307) Line-height in <pre> is too narrow, edges overlap in some environments
[mediawiki.git] / tests / phpunit / Makefile
blob24536efc8e8d8715147b8c61b6760dd898604ccf
1 .PHONY: help test phpunit install coverage warning destructive parser noparser safe databaseless list-groups
2 .DEFAULT: warning
4 SHELL = /bin/sh
5 CONFIG_FILE = $(shell pwd)/suite.xml
6 PHP = php
7 PU = ${PHP} phpunit.php --configuration ${CONFIG_FILE} ${FLAGS}
9 all test: warning
11 warning:
12 @echo "Run 'make help' to get usage"
13 @echo ""
14 @echo "WARNING -- some tests are DESTRUCTIVE and will alter your wiki."
15 @echo "DO NOT RUN THESE TESTS on a production wiki."
16 @echo ""
17 @echo "Until the default tests are made non-destructive, you can run"
18 @echo "the destructive tests like so:"
19 @echo ""
20 @echo " make destructive"
21 @echo ""
22 @echo "Some tests are expected to be safe, you can run them with"
23 @echo ""
24 @echo " make safe"
25 @echo ""
26 @echo "You are recommended to run the tests with read-only credentials."
27 @echo ""
28 @echo "If you don't have a database running, you can still run"
29 @echo ""
30 @echo " make databaseless"
31 @echo ""
33 destructive: phpunit
35 phpunit:
36 ${PU}
38 install:
39 ./install-phpunit.sh
41 tap:
42 ${PU} --tap
44 coverage:
45 ${PU} --coverage-html ../../docs/code-coverage
47 parser:
48 ${PU} --group Parser
49 noparser:
50 ${PU} --exclude-group Parser,Broken,Stub
52 safe:
53 ${PU} --exclude-group Broken,Destructive,Stub
55 databaseless:
56 ${PU} --exclude-group Broken,Destructive,Database,Stub
58 database:
59 ${PU} --exclude-group Broken,Destructive,Stub --group Database
61 list-groups:
62 ${PU} --list-groups
64 help:
65 # Usage:
66 # make <target> [OPTION=value]
68 # Targets:
69 # phpunit (default) Run all the tests with phpunit
70 # install Install PHPUnit from phpunit.de
71 # tap Run the tests individually through Test::Harness's prove(1)
72 # help You're looking at it!
73 # coverage Run the tests and generates an HTML code coverage report
74 # You will need the Xdebug PHP extension for the later.
75 # [no]parser Skip or only run Parser tests
77 # list-groups List availabe Tests groups.
79 # Options:
80 # CONFIG_FILE Path to a PHPUnit configuration file (default: suite.xml)
81 # FLAGS Additional flags to pass to PHPUnit
82 # PHP Path to php