aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/suite.xml
blob: 85ed3369166035ae0ff9d454a42357cbff660aae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>
<!--
************** DEPRECATED! ****************
This configuration file has been deprecated in favour of phpunit.xml.dist.
-->
<phpunit bootstrap="./bootstrap.integration.php"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
	colors="true"
	backupGlobals="false"
	convertDeprecationsToExceptions="true"
	convertErrorsToExceptions="true"
	convertNoticesToExceptions="true"
	convertWarningsToExceptions="true"
	forceCoversAnnotation="true"
	failOnWarning="true"
	stopOnFailure="false"
	failOnRisky="true"
	beStrictAboutTestsThatDoNotTestAnything="true"
	beStrictAboutOutputDuringTests="true"
	verbose="false"
	printerClass="MediaWikiPHPUnitResultPrinter"
	stderr="true">
	<!-- Output only to stderr to avoid "Headers already sent" problems -->
	<php>
		<ini name="memory_limit" value="-1" />
		<ini name="max_execution_time" value="0" />
	</php>
	<testsuites>
		<testsuite name="includes">
			<directory>includes</directory>
		</testsuite>
		<testsuite name="parsertests">
			<file>suites/CoreParserTestSuite.php</file>
			<file>suites/ExtensionsParserTestSuite.php</file>
		</testsuite>
		<testsuite name="skins">
			<directory>structure</directory>
			<file>suites/ExtensionsTestSuite.php</file>
		</testsuite>
		<!-- As there is a class Maintenance, we cannot use the name "maintenance" directly -->
		<testsuite name="maintenance_suite">
			<directory>maintenance</directory>
		</testsuite>
		<testsuite name="structure">
			<directory>structure</directory>
		</testsuite>
		<testsuite name="tests">
			<directory>tests</directory>
		</testsuite>
		<testsuite name="extensions">
			<directory>structure</directory>
			<file>suites/ExtensionsTestSuite.php</file>
			<file>suites/ExtensionsParserTestSuite.php</file>
		</testsuite>
		<testsuite name="unit">
			<directory>unit</directory>
		</testsuite>
		<testsuite name="integration">
			<directory>integration</directory>
		</testsuite>
		<testsuite name="docs">
			<directory>docs</directory>
		</testsuite>
	</testsuites>
	<groups>
		<exclude>
			<group>Broken</group>
		</exclude>
	</groups>
	<coverage includeUncoveredFiles="true">
		<include>
			<directory suffix=".php">../../includes</directory>
			<directory suffix=".php">../../maintenance</directory>
		</include>
		<exclude>
			<directory suffix=".php">../../maintenance/benchmarks</directory>
		</exclude>
	</coverage>
	<listeners>
		<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
			<arguments>
				<array>
					<element key="slowThreshold">
						<integer>50</integer>
					</element>
					<element key="reportLength">
						<integer>10</integer>
					</element>
				</array>
			</arguments>
		</listener>
	</listeners>
	<extensions>
		<extension class="MediaWikiLoggerPHPUnitExtension" />
		<extension class="MediaWikiTeardownPHPUnitExtension" />
		<extension class="MediaWikiDeprecatedConfigPHPUnitExtension" />
	</extensions>
</phpunit>