mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-22 16:32:27 +02:00
Revert "phpunit: fix configuration and run without PHAR wip"
This reverts commit e213a38feb6521a01b6eb3d25487ac27542adce1.
This commit is contained in:
parent
7c8dd371d6
commit
424c89bfd9
44
phpunit.dist.xml
Normal file
44
phpunit.dist.xml
Normal 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>
|
29
phpunit.xml
29
phpunit.xml
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user