Skip to content

Commit 129da4f

Browse files
committed
fix test coverage
Signed-off-by: Lloric Mayuga Garcia <lloricode@gmail.com>
1 parent b6fdd3e commit 129da4f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
with:
3636
php-version: ${{ matrix.php }}
3737
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
38-
# coverage: pcov
39-
coverage: none
38+
coverage: pcov
39+
# coverage: none
4040

4141
- name: Install Composer dependencies
4242
run: composer i --prefer-dist --no-interaction --no-progress
4343

4444
- name: Execute tests
45-
run: vendor/bin/pest --ci --parallel #--coverage-clover coverage.xml
45+
run: XDEBUG_MODE=coverage vendor/bin/pest --coverage --parallel
4646

4747
- name: Upload coverage reports to Codecov
4848
uses: codecov/codecov-action@v3

phpunit.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
<directory suffix="Test.php">./tests</directory>
1010
</testsuite>
1111
</testsuites>
12+
<coverage>
13+
<include>
14+
<directory suffix=".php">./src</directory>
15+
</include>
16+
<report>
17+
<html outputDirectory="build/coverage"/>
18+
<text outputFile="build/coverage.txt"/>
19+
<clover outputFile="build/logs/clover.xml"/>
20+
</report>
21+
</coverage>
1222
<source>
1323
<include>
1424
<directory suffix=".php">./src</directory>

0 commit comments

Comments
 (0)