Skip to content

Commit

Permalink
Fix tests coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wppunk committed Oct 14, 2021
1 parent 5c92b2b commit bd8ba76
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wpautoload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: composer cs

- name: Tests coverage
run: vendor/phpunit/phpunit/phpunit --configuration tests/phpunit/phpunit.xml --coverage-clover coverage.xml
run: XDEBUG_MODE=coverage vendor/phpunit/phpunit/phpunit --configuration tests/phpunit/phpunit.xml --coverage-clover coverage.xml

- name: Send to coveralls
run: php vendor/bin/php-coveralls -v
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ vendor
tests/phpunit/.phpunit.result.cache
cache
.phpcs.cache
coverage.xml
20 changes: 10 additions & 10 deletions tests/phpunit/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./bootstrap.php" backupGlobals="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">../../src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="WP-Autoload-tests">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">../../src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="WP-Autoload-tests">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit bd8ba76

Please sign in to comment.