I know the edits are done mostly for machines, not humans... But occasionally humans need to review things
diff --git a/tests/phpunit/suite.xml b/tests/phpunit/suite.xml index c63751a0412..d2a7438fcf7 100644 --- a/tests/phpunit/suite.xml +++ b/tests/phpunit/suite.xml @@ -1,23 +1,5 @@ -<?xml version="1.0" encoding="UTF-8"?> -<phpunit bootstrap="./bootstrap.maintenance.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 --> +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./bootstrap.maintenance.php" 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"> + <php> <ini name="memory_limit" value="-1" /> <ini name="max_execution_time" value="0" /> @@ -38,7 +20,7 @@ <file>suites/ExtensionsTestSuite.php</file> <file>suites/LessTestSuite.php</file> </testsuite> - <!-- As there is a class Maintenance, we cannot use the name "maintenance" directly --> + <testsuite name="maintenance_suite"> <directory>maintenance</directory> </testsuite> @@ -68,10 +50,7 @@ </groups> <coverage includeUncoveredFiles="true"> <include> - <directory suffix=".php">../../includes</directory> - <directory suffix=".php">../../languages</directory> - <directory suffix=".php">../../maintenance</directory> - </include> + <directory suffix=".php">../../extensions/StopForumSpam/src</directory><directory suffix=".php">../../extensions/StopForumSpam/includes</directory><directory suffix=".php">../../extensions/StopForumSpam/maintenance</directory></include> <exclude> <directory suffix=".php">../../languages/messages</directory> <directory suffix=".php">../../maintenance/benchmarks</directory> @@ -94,4 +73,4 @@ <extensions> <extension class="MediaWikiLoggerPHPUnitExtension" /> </extensions> -</phpunit> +</phpunit> \ No newline at end of file