1
By starting a repository with a new Laravel 5.5 installation and setting up test coverage and Coveralls for this, despite having only scaffolded the framework authentication and not written a single line of code the return is that it has only 33.33% test coverage with the following report:
Found 13 source files:
- 100.00% app/Console/Kernel.php
- 0.00% app/Exceptions/Handler.php
- 0.00% app/Http/Controllers/Auth/Forgotpasswordcontroller.php
- 0.00% app/Http/Controllers/Auth/Logincontroller.php
- 0.00% app/Http/Controllers/Auth/Registercontroller.php
- 0.00% app/Http/Controllers/Auth/Resetpasswordcontroller.php
- 0.00% app/Http/Controllers/Homecontroller.php
- 0.00% app/Http/Middleware/Redirectifauthenticated.php
- 100.00% app/Providers/Appserviceprovider.php
- 100.00% app/Providers/Authserviceprovider.php
- 0.00% app/Providers/Broadcastserviceprovider.php
- 100.00% app/Providers/Eventserviceprovider.php
- 100.00% app/Providers/Routeserviceprovider.php Coverage: 33.33% (24/72)
All of these classes should probably be covered by tests in the framework repository. The question would be, should I do the unit tests for all these classes not covered in my own test suite or seek to disable the testing coverage check for those classes? Mainly the framework itself as Broadcastserviceprovider, Handler, etc?
https://github.com/renanoliveira0/Where.is.My.Money https://coveralls.io/github/renanoliveira0/Where.is.My.Money
I do not believe it is necessary to test in these classes and taking advantage also do not believe that it is necessary to test in CRUD, in crud.
– Leandro Henrique