Skip to content

Commit

Permalink
Exclude vendor dir from code coverage (GoogleCloudPlatform#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri authored and bshaffer committed Dec 20, 2019
1 parent 942b532 commit c3655c2
Show file tree
Hide file tree
Showing 91 changed files with 371 additions and 3 deletions.
3 changes: 3 additions & 0 deletions appengine/flexible/analytics/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/cloudsql-mysql/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/cloudsql-postgres/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/datastore/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions appengine/flexible/drupal8/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
<directory>test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./web</directory>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
5 changes: 4 additions & 1 deletion appengine/flexible/helloworld/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
</logging>
<filter>
<whitelist>
<directory suffix=".php">./web</directory>
<directory suffix=".php">./web</directory>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions appengine/flexible/laravel/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
<directory>test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/logging/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/mailgun/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/mailjet/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/memcache/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/metadata/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/sendgrid/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions appengine/flexible/staticcontent/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
<directory>test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<file>index.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/storage/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions appengine/flexible/supervisord/addition/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,12 @@
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
<filter>
<whitelist>
<file>index.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions appengine/flexible/supervisord/replacement/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
<directory>test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<file>index.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions appengine/flexible/symfony/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
<directory>test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<file>index.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/tasks/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>index.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
<php>
Expand Down
3 changes: 3 additions & 0 deletions appengine/flexible/twilio/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/flexible/websockets/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>socket_demo.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions appengine/flexible/wordpress/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,12 @@
<php>
<env name="PHPUNIT_TESTS" value="1"/>
</php>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/cloudsql/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/grpc/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<file>monitoring.php</file>
<file>spanner.php</file>
<file>datastore.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/http/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/mail/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<file>index.php</file>
<file>handle_bounced_email.php</file>
<file>handle_incoming_email.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/mailgun/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/mailjet/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
10 changes: 9 additions & 1 deletion appengine/php55/memcache/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,13 @@
<testsuite name="PHP memcache test">
<directory>test</directory>
</testsuite>
</testsuites>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/modules/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
8 changes: 8 additions & 0 deletions appengine/php55/phpmyadmin/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@
<directory>test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/sendgrid/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/storage/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/taskqueue/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/twilio/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions appengine/php55/users/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<filter>
<whitelist>
<file>app.php</file>
<exclude>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
Loading

0 comments on commit c3655c2

Please sign in to comment.