phpunit の使い方を追記

This commit is contained in:
eai04191
2019-04-13 18:36:21 +09:00
parent 0e45d27295
commit f895996b18
2 changed files with 12 additions and 0 deletions
+9
View File
@@ -86,6 +86,15 @@ docker-compose run --rm web yarn watch
現在Docker環境でのHMRはサポートしてません。Docker外ならおそらく動くでしょう。
その他詳しくはlaravel-mixのドキュメントなどを当たってください。
## phpunit によるテスト
変更をしたらPull Requestを投げる前にテストが通ることを確認してください。
テストは以下のコマンドで実行できます。
```
docker-compose exec web composer test
```
## 環境構築上の諸注意
- 初版時点では、DB サーバとして PostgreSQL を使うよう .env ファイルを設定するくらいです。
+3
View File
@@ -50,6 +50,9 @@
],
"fix": [
"php-cs-fixer fix"
],
"test": [
"phpunit"
]
},
"config": {