Skip to content

Commit

Permalink
ci: Use pcov for coverage. (#252)
Browse files Browse the repository at this point in the history
* ci: Use PCOV for infection tests.

* ci: Use PCOV for infection tests.

* Add clover reporting

* Try another configuration.

* Try another configuration.
  • Loading branch information
drupol authored May 7, 2022
1 parent a6b4791 commit cf7890a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
uses: shivammathur/setup-php@2.18.1
with:
php-version: ${{ matrix.php-versions }}
extensions: gd,mbstring,pcov
coverage: pcov
extensions: gd,mbstring

- name: Get Composer Cache Directory
id: composer-cache
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
uses: shivammathur/setup-php@2.18.1
with:
php-version: ${{ matrix.php-versions }}
extensions: gd,mbstring,pcov,xdebug
coverage: pcov
extensions: gd,mbstring

- name: Get Composer Cache Directory
id: composer-cache
Expand Down
1 change: 1 addition & 0 deletions infection.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"src"
]
},
"tmpDir": "build/logs/coverage/coverage-xml",
"logs": {
"github": true,
"text": "build/logs/infection/infection.log",
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
</testsuite>
</testsuites>

<coverage pathCoverage="true" processUncoveredFiles="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<report>
<xml outputDirectory="build/logs/coverage/coverage-xml"/>
<xml outputDirectory="build/logs/coverage/coverage-xml/infection"/>
<html outputDirectory="build/logs/coverage/html-coverage"/>
<clover outputFile="build/logs/coverage/clover.xml"/>
</report>
Expand Down

0 comments on commit cf7890a

Please sign in to comment.