Skip to content

Commit

Permalink
Merge pull request #192 from koriym/xdebug
Browse files Browse the repository at this point in the history
Change coverage driver from pcov to xdebug
  • Loading branch information
harikt authored Feb 3, 2022
2 parents 3ea458d + aea24f9 commit 613f28c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
coverage: xdebug
tools: none
ini-values: assert.exception=1, zend.assertions=1

Expand All @@ -51,7 +51,7 @@ jobs:
run: composer install --no-interaction --prefer-dist

- name: Run test suite
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
run: php -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-clover=coverage.xml

- name: Upload coverage report
uses: codecov/codecov-action@v2
Expand Down
23 changes: 12 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<phpunit bootstrap="./phpunit.php">
<testsuites>
<testsuite name="Aura.Router test suite">
<directory>./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./phpunit.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Aura.Router test suite">
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 613f28c

Please sign in to comment.