Skip to content

Commit d4588d0

Browse files
authored
Add coverage testing (#260)
1 parent 4476d44 commit d4588d0

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
php-version: ${{ matrix.php }}
3232
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
33-
coverage: none
33+
coverage: xdebug
3434

3535
- name: Install dependencies
3636
run: |
@@ -73,7 +73,7 @@ jobs:
7373
with:
7474
php-version: ${{ matrix.php }}
7575
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
76-
coverage: none
76+
coverage: xdebug
7777

7878
- name: Install dependencies
7979
run: |
@@ -130,7 +130,7 @@ jobs:
130130
with:
131131
php-version: ${{ matrix.php }}
132132
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
133-
coverage: none
133+
coverage: xdebug
134134

135135
- name: Install dependencies
136136
run: |
@@ -187,7 +187,7 @@ jobs:
187187
with:
188188
php-version: ${{ matrix.php }}
189189
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
190-
coverage: none
190+
coverage: xdebug
191191

192192
- name: Install dependencies
193193
run: |
@@ -244,7 +244,7 @@ jobs:
244244
with:
245245
php-version: ${{ matrix.php }}
246246
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
247-
coverage: none
247+
coverage: xdebug
248248

249249
- name: Install dependencies
250250
run: |
@@ -289,7 +289,7 @@ jobs:
289289
with:
290290
php-version: ${{ matrix.php }}
291291
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
292-
coverage: none
292+
coverage: xdebug
293293

294294
- name: Install dependencies
295295
run: |

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"orchestra/testbench": "^9.5.1",
4949
"pestphp/pest": "^3.2",
5050
"pestphp/pest-plugin-laravel": "^3.0",
51-
"pestphp/pest-plugin-livewire": "*"
51+
"pestphp/pest-plugin-livewire": "*",
52+
"pestphp/pest-plugin-type-coverage": "^3.3"
5253
},
5354
"minimum-stability": "dev",
5455
"prefer-stable": true,
@@ -106,7 +107,7 @@
106107
"test:lint": [
107108
"pint --test"
108109
],
109-
"test:unit": "pest --parallel --processes=10 --ci --compact",
110+
"test:unit": "pest --parallel --processes=10 --ci --coverage --compact",
110111
"test": [
111112
"@test:lint",
112113
"@test:unit"

0 commit comments

Comments
 (0)