Closed dcorrea777 closed 1 year ago
You're not doing it wrong! Coverage for unit tests is about 76% only, I get the same results on my setup. The 95% report is for unit+integration.
I personally care more about increasing the unit coverage (making the 76% go higher), so maybe one day we can use only that suite for the coverage report.
If you want to increase the total coverage, that's cool as well! If you can find the tests that can increase both numbers, that would be great :D
Thank you very much @alganet !
I ran the integration tests and it worked, now I have the correct percentage value, now I can better guide myself in which tests I need to create.
I'm wanting to increase code coverage, but I'm having some problems related to the percentage generated by the codedcov tool and my local environment using phpunit + xdebug.
In my local environment using xdebug the total percentage is at 76.16%, but the codecov tool is with 94.57%. There is a very large file difference without test coverage in local environment.
As I want to increase code coverage by guiding myself through the report, it's a little difficult to create the new tests, I don't know if I'm doing something wrong in my environment.
I currently have the following php configuration.
And using the following command to generate the coverage report.