Skip to content

Commit 66866d8

Browse files
authored
Update README.md
1 parent f87ef6a commit 66866d8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Laravel route coverage report.
44

5+
With this package you can see the percentage of test coverage of your endpoint's. Unless of course you do it through Laravel or PHPUnit tests.
6+
How it works?
7+
First, we scan the entire directory where the tests are stored, and look for all the http calls there. After that, we take all the routes of the project and combine it into a single report.
8+
59
## :scroll: **Installation**
610
The package can be installed via composer:
711
```
@@ -14,4 +18,11 @@ Generate report:
1418
```
1519
php artisan route:coverage
1620
```
21+
After executing the command, the result of the report will be displayed in the console in the following form:
22+
23+
![image](https://user-images.githubusercontent.com/24630195/121243805-d181c080-c8a6-11eb-9752-b27355a7c26e.png)
24+
25+
26+
Also the html report will be saved in the public/route-coverage directory:
1727

28+
![image](https://user-images.githubusercontent.com/24630195/121243718-b747e280-c8a6-11eb-902d-6be093ec0cf8.png)

0 commit comments

Comments
 (0)