diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ac1e80d..4b163e9 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -35,4 +35,4 @@ jobs: run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest - name: Execute tests - run: vendor/bin/phpunit + run: vendor/bin/pest diff --git a/.gitignore b/.gitignore index 929b678..1f2c245 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ vendor coverage .php-cs-fixer.cache .phpunit.result.cache +.idea diff --git a/composer.json b/composer.json index 6649988..2a956c0 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "require-dev": { "larapack/dd": "^1.1", "nesbot/carbon": "^2.54", + "pestphp/pest": "^1.22", "phpunit/phpunit": "^9.5", "spatie/ray": "^1.31" }, @@ -35,10 +36,13 @@ } }, "scripts": { - "test": "vendor/bin/phpunit", - "test-coverage": "vendor/bin/phpunit --coverage-html coverage" + "test": "vendor/bin/pest", + "test-coverage": "vendor/bin/pest --coverage" }, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } } -} \ No newline at end of file +} diff --git a/tests/Pest.php b/tests/Pest.php new file mode 100644 index 0000000..a4f18d0 --- /dev/null +++ b/tests/Pest.php @@ -0,0 +1,20 @@ +