From f895996b1851156cc74cb102b469976868af6808 Mon Sep 17 00:00:00 2001 From: eai04191 Date: Wed, 20 Mar 2019 21:09:11 +0900 Subject: [PATCH] =?UTF-8?q?phpunit=20=E3=81=AE=E4=BD=BF=E3=81=84=E6=96=B9?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++++++ composer.json | 3 +++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 8bd1e80..9567de3 100644 --- a/README.md +++ b/README.md @@ -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 ファイルを設定するくらいです。 diff --git a/composer.json b/composer.json index 27bdca3..8b08519 100644 --- a/composer.json +++ b/composer.json @@ -50,6 +50,9 @@ ], "fix": [ "php-cs-fixer fix" + ], + "test": [ + "phpunit" ] }, "config": {