Merge pull request #160 from eai04191/feature/readme-phpunit

READMEに phpunit の使い方を追記
This commit is contained in:
shibafu
2019-04-17 23:38:23 +09:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

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 ファイルを設定するくらいです。

View File

@@ -51,6 +51,9 @@
],
"fix": [
"php-cs-fixer fix"
],
"test": [
"phpunit"
]
},
"config": {