Skip to content

Commit 63bc585

Browse files
committed
Add pest package
1 parent f52bb80 commit 63bc585

File tree

5 files changed

+418
-92
lines changed

5 files changed

+418
-92
lines changed

src/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Batteries included ready to use development environment for Laravel.
2727
- Code Analysis
2828
- [larastan](https://github.com/nunomaduro/larastan): Adds code analysis to Laravel improving developer productivity and code quality (PHPStan wrapper).
2929
- [pint](https://github.com/laravel/pint): PHP code style fixer (PHP-CS Fixer wrapper).
30+
- [pest](https://github.com/pestphp/pest): Pest is an elegant PHP Testing Framework with a focus on simplicity.
3031

3132
## Artisan Commands
3233

@@ -104,8 +105,22 @@ See full config list and examples [here](https://mlocati.github.io/php-cs-fixer-
104105
<summary>Click to see pint commands</summary>
105106

106107
```bash
107-
# analyze code
108+
# check and fix code style
108109

109110
php ./vendor/bin/pint -v
110111
```
111112
</details>
113+
114+
## Pest Commands
115+
116+
See more examples abouts pesting [here](https://pestphp.com/docs/writing-tests).
117+
118+
<details>
119+
<summary>Click to see pest commands</summary>
120+
121+
```bash
122+
# run tests
123+
124+
php ./vendor/bin/pest
125+
```
126+
</details>

src/composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"mockery/mockery": "^1.4.4",
2828
"nunomaduro/collision": "^6.1",
2929
"nunomaduro/larastan": "^2.1",
30+
"pestphp/pest": "^1.21",
31+
"pestphp/pest-plugin-laravel": "^1.2",
3032
"phpunit/phpunit": "^9.5.10"
3133
},
3234
"autoload": {
@@ -64,7 +66,10 @@
6466
"config": {
6567
"optimize-autoloader": true,
6668
"preferred-install": "dist",
67-
"sort-packages": true
69+
"sort-packages": true,
70+
"allow-plugins": {
71+
"pestphp/pest-plugin": true
72+
}
6873
},
6974
"minimum-stability": "dev",
7075
"prefer-stable": true

0 commit comments

Comments
 (0)