Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
php-version: ${{ matrix.php-version }}
extensions: curl, json, mbstring
coverage: none
coverage: pcov
tools: composer:v2

- name: Set composer cache directory
Expand All @@ -46,8 +46,8 @@ jobs:
- name: Install composer dependencies
run: composer install --no-interaction --prefer-dist --no-progress

- name: Run phpunit unit tests
run: vendor/bin/phpunit --testsuite=unit --colors=always --testdox
- name: Run phpunit unit tests with coverage
run: vendor/bin/phpunit --testsuite=unit --colors=always --testdox --coverage-clover=coverage.xml

# integration tests send requests to the live CurseForge API and need the CURSEFORGE_API_KEY secret,
# so they only run on the master branch and when started manually
Expand Down
34 changes: 17 additions & 17 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="./vendor/autoload.php"
bootstrap="vendor/autoload.php"
colors="true"
executionOrder="random"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true">
<source>
<include>
<directory>src</directory>
</include>
</source>
<testsuites>
<testsuite name="integration">
<directory>./tests/Integration/Client</directory>
</testsuite>
<testsuite name="unit">
<directory>tests/Unit/Client</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="E_ALL"/>
</php>
<testsuites>
<testsuite name="unit">
<directory>tests/Unit/Client</directory>
</testsuite>
<testsuite name="integration">
<directory>tests/Integration/Client</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>src/Client</directory>
</include>
</source>
<php>
<ini name="error_reporting" value="E_ALL"/>
</php>
</phpunit>
Loading