From b713ae7b337a987123d2fb40d7cbdabc7d5143c5 Mon Sep 17 00:00:00 2001 From: Nguyen Tran Chung Date: Wed, 29 May 2024 08:11:05 +0900 Subject: [PATCH] test coverage --- .gitignore | 1 + README.md | 8 ++++++++ phpunit.xml | 33 ++++++++++++++++++++------------- 3 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 46340a6..95cbb59 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /public/build /public/hot /public/storage +/public/coverage /storage/*.key /vendor .env diff --git a/README.md b/README.md index b47a942..eba6a3c 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,11 @@ Vui lòng chạy lệnh dưới đây trước khi gửi Pull Request! composer ide php artisan test ``` + +## Test Coverage + +```bash +php artisan test --coverage +``` + +Mở trình duyệt http://127.0.0.1:8000/coverage/index.html để xem kết quả diff --git a/phpunit.xml b/phpunit.xml index 506b9a3..14d794a 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,8 +1,8 @@ @@ -17,17 +17,24 @@ app + + + + + + + - - - - + + + + - - - - - + + + + + - + \ No newline at end of file