I have searched and read the docs, or at least I think I have, but I have been unable to find if there a way to get a list of all the skipped tests with PHPUNIT?
Is this possible?
I have searched and read the docs, or at least I think I have, but I have been unable to find if there a way to get a list of all the skipped tests with PHPUNIT?
Is this possible?
You could get something close using awk:
phpunit -v | awk '/skipped tests/,/Tests\:/'
This will output a list from the start of There are x skipped tests
to the end of the output with the summary line
With PHPUnit 10:
phpunit --display-skipped
or within the phpunit.xml
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnSkippedTests="true"
>
© 2022 - 2024 — McMap. All rights reserved.
logIncompleteSkipped
in the logging configuration section here but I haven't never try.... – Scotia