@@ -29,7 +29,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
- coverage: none
+ coverage: xdebug
- name: Install dependencies
@@ -45,6 +45,7 @@
"league/fractal": "^0.19.0",
"nikic/fast-route": "^1.3",
"orchestra/testbench": "^4.0|^5.0",
+ "pestphp/pest": "^0.3",
"phpstan/phpstan": "^0.12.90",
"phpunit/phpunit": "^9.0",
"symfony/css-selector": "^5.3",
@@ -66,8 +67,8 @@
},
"scripts": {
"lint": "phpstan analyse -c ./phpstan.neon src camel --memory-limit 1G",
- "test": "phpunit --stop-on-failure --exclude-group dingo",
- "test-ci": "phpunit --exclude-group dingo",
+ "test": "pest --stop-on-failure --exclude-group dingo --coverage --colors",
+ "test-ci": "pest --exclude-group dingo --coverage --min=80",
"test-parallel": "paratest -p16 --stop-on-failure --exclude-group dingo",
"test-parallel-ci": "paratest -p16 --exclude-group dingo"
@@ -81,7 +82,10 @@
"config": {
"preferred-install": "dist",
"sort-packages": true,
- "process-timeout": 600
+ "process-timeout": 600,
+ "allow-plugins": {
+ "pestphp/pest-plugin": true
+ }
"replace": {
"mpociot/laravel-apidoc-generator": "*"