mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Fixed default phpunit.xml.dist: add filter/whitelist
If we don't do that, phpunit is not able to compute the code coverage. We get the following error without it: ``` Error: Incorrect whitelist config, no code coverage will be generated. ```
This commit is contained in:
@@ -22,4 +22,10 @@
|
||||
<directory>tests/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<filter>
|
||||
<whitelist>
|
||||
<directory>./src/</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
|
||||
@@ -23,6 +23,12 @@
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<filter>
|
||||
<whitelist>
|
||||
<directory>./src/</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
|
||||
<listeners>
|
||||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
|
||||
</listeners>
|
||||
|
||||
Reference in New Issue
Block a user