From d7fca1c6b709258edb4fd72897c6c486a2d5932c Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 10 Mar 2025 08:50:22 +0000 Subject: [PATCH] Add coverage testing --- .github/workflows/run-tests.yml | 12 ++++++------ composer.json | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ede237e1..d17a1610 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -30,7 +30,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none + coverage: xdebug - name: Install dependencies run: | @@ -73,7 +73,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none + coverage: xdebug - name: Install dependencies run: | @@ -130,7 +130,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none + coverage: xdebug - name: Install dependencies run: | @@ -187,7 +187,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none + coverage: xdebug - name: Install dependencies run: | @@ -244,7 +244,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none + coverage: xdebug - name: Install dependencies run: | @@ -289,7 +289,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none + coverage: xdebug - name: Install dependencies run: | diff --git a/composer.json b/composer.json index ba748c97..7e4a578f 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,8 @@ "orchestra/testbench": "^9.5.1", "pestphp/pest": "^3.2", "pestphp/pest-plugin-laravel": "^3.0", - "pestphp/pest-plugin-livewire": "*" + "pestphp/pest-plugin-livewire": "*", + "pestphp/pest-plugin-type-coverage": "^3.3" }, "minimum-stability": "dev", "prefer-stable": true, @@ -106,7 +107,7 @@ "test:lint": [ "pint --test" ], - "test:unit": "pest --parallel --processes=10 --ci --compact", + "test:unit": "pest --parallel --processes=10 --ci --coverage --compact", "test": [ "@test:lint", "@test:unit"