Revert "phpunit: fix configuration and run without PHAR wip"

This reverts commit e213a38feb6521a01b6eb3d25487ac27542adce1.
This commit is contained in:
TomasVotruba 2018-03-03 12:15:03 +01:00
parent 7c8dd371d6
commit 424c89bfd9
2 changed files with 46 additions and 27 deletions

44
phpunit.dist.xml Normal file
View File

@ -0,0 +1,44 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
verbose="true"
>
<testsuites>
<!-- only contrib open-source project Rectors -->
<testsuite name="contrib-rectors">
<directory>tests/Rector/Contrib</directory>
</testsuite>
<!-- only general configurable Rectors -->
<testsuite name="general-rectors">
<directory>tests/Rector/Dynamic</directory>
<directory>tests/Rector/MagicDisclosure</directory>
</testsuite>
<!-- only Phar -->
<testsuite name="phar-build">
<directory>tests/Phar</directory>
</testsuite>
<!-- and the rest -->
<testsuite name="main">
<directory>packages/*/tests</directory>
<directory>tests</directory>
<exclude>tests/Rector/Dynamic/</exclude>
<exclude>tests/Rector/MagicDisclosure/</exclude>
<exclude>tests/Rector/Contrib/</exclude>
<exclude>tests/Phar</exclude>
</testsuite>
</testsuites>
<!-- source to check coverage for -->
<filter>
<whitelist addUncoveredFilesFromWhitelist="false">
<directory suffix="*.php">packages/*/src</directory>
<directory>src</directory>
<exclude>
<directory>../vendor</directory>
<directory>../tests/**/*Source/**</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

View File

@ -6,35 +6,10 @@
verbose="true"
>
<testsuites>
<!-- only contrib open-source project Rectors -->
<testsuite name="contrib-rectors">
<directory>tests/Rector/Contrib</directory>
</testsuite>
<!-- only general configurable Rectors -->
<testsuite name="general-rectors">
<directory>tests/Rector/Dynamic</directory>
<directory>tests/Rector/MagicDisclosure</directory>
</testsuite>
<!-- and the rest -->
<testsuite name="main">
<directory>packages/*/tests</directory>
<testsuite name="all-except-phar">
<directory>tests</directory>
<exclude>tests/Rector/Dynamic/</exclude>
<exclude>tests/Rector/MagicDisclosure/</exclude>
<exclude>tests/Rector/Contrib/</exclude>
<directory>packages/*/tests</directory>
<exclude>tests/Phar</exclude>
</testsuite>
</testsuites>
<!-- source to check coverage for -->
<filter>
<whitelist addUncoveredFilesFromWhitelist="false">
<directory suffix="*.php">packages/*/src</directory>
<directory>src</directory>
<exclude>
<directory>../vendor</directory>
<directory>../tests/**/*Source/**</directory>
</exclude>
</whitelist>
</filter>
</phpunit>