diff --git a/.gitlab-ci/pipeline.yml b/.gitlab-ci/pipeline.yml index 36433e0b4946d162ba5385ed1fc3c763729418bb..19c909925d4b8bb16c118b98237549889637565b 100644 --- a/.gitlab-ci/pipeline.yml +++ b/.gitlab-ci/pipeline.yml @@ -1,4 +1,4 @@ -# cspell:ignore cobertura drupaltestbot drupaltestbotpw Dwebdriver logfile XVFB +# cspell:ignore cobertura drupaltestbot drupaltestbotpw Dwebdriver logfile testdox XVFB stages: - ðŸ—œï¸ Test @@ -222,7 +222,7 @@ variables: - docker-php-ext-enable pcov - cd core/tests/PHPStan - composer install - - vendor/bin/phpunit tests --coverage-text --colors=never --coverage-cobertura=coverage.cobertura.xml --log-junit junit.xml + - vendor/bin/phpunit tests --testdox --coverage-text --colors=never --coverage-cobertura=coverage.cobertura.xml --log-junit junit.xml # Default job settings runs a script that junit files in a specific location.. after_script: [] artifacts: diff --git a/core/tests/PHPStan/composer.json b/core/tests/PHPStan/composer.json index c78bab07e8a9a5c724a8e3cd4abcbbe51a46fd27..bc50383c432c816a26c4df9649eed8d1fe94435b 100644 --- a/core/tests/PHPStan/composer.json +++ b/core/tests/PHPStan/composer.json @@ -2,7 +2,7 @@ "name": "drupal/phpstan-testing", "description": "Tests Drupal core's PHPStan rules", "require-dev": { - "phpunit/phpunit": "^9", + "phpunit/phpunit": "^10", "phpstan/phpstan": "1.11.8" }, "license": "GPL-2.0-or-later", diff --git a/core/tests/PHPStan/phpunit.xml.dist b/core/tests/PHPStan/phpunit.xml.dist index 7ca6a7c507c2d414e95d52b5f88223d3dd785962..5ec52ff5a3e38e7d02b873e099403c81b0559f8a 100644 --- a/core/tests/PHPStan/phpunit.xml.dist +++ b/core/tests/PHPStan/phpunit.xml.dist @@ -6,7 +6,7 @@ beStrictAboutChangesToGlobalState="true" failOnWarning="true" cacheResult="false" - xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"> <php> <!-- Set error reporting to E_ALL. --> <ini name="error_reporting" value="32767"/> @@ -19,9 +19,9 @@ </testsuite> </testsuites> <!-- Settings for coverage reports. --> - <coverage> + <source> <include> <directory>Rules</directory> </include> - </coverage> + </source> </phpunit>