Skip to content

Commit 24b1652

Browse files
authored
Merge pull request #139 from alexmanase/convert-all-tests-to-pest
Convert all tests to pest
2 parents bcb4d8b + 13ebfec commit 24b1652

8 files changed

+432
-530
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
3939
4040
- name: Execute tests
41-
run: vendor/bin/phpunit
41+
run: vendor/bin/pest

composer.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"require-dev": {
3030
"mockery/mockery": "^1.4.3",
3131
"orchestra/testbench": "^6.19|^7.0",
32-
"phpunit/phpunit": "^9.3.0",
32+
"pestphp/pest": "^1.22",
33+
"pestphp/pest-plugin-laravel": "^1.3",
3334
"spatie/test-time": "^1.2.2"
3435
},
3536
"autoload": {
@@ -43,12 +44,14 @@
4344
}
4445
},
4546
"scripts": {
46-
"test": "vendor/bin/phpunit",
47-
"test-coverage": "vendor/bin/phpunit"
48-
47+
"test": "vendor/bin/pest",
48+
"test-coverage": "vendor/bin/pest"
4949
},
5050
"config": {
51-
"sort-packages": true
51+
"sort-packages": true,
52+
"allow-plugins": {
53+
"pestphp/pest-plugin": true
54+
}
5255
},
5356
"extra": {
5457
"laravel": {
@@ -59,4 +62,4 @@
5962
},
6063
"minimum-stability": "dev",
6164
"prefer-stable": true
62-
}
65+
}

0 commit comments

Comments
 (0)